Rename authors -> _authors in VCSBackend.authors() loop to avoid clobber.
authorW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 19:47:23 +0000 (14:47 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 19:47:23 +0000 (14:47 -0500)
The previous version had been clobbering the raw VCS results.

update_copyright/vcs/__init__.py

index 1133795..17281ab 100644 (file)
@@ -53,8 +53,8 @@ class VCSBackend (object):
     def authors(self, filename=None, with_emails=True):
         authors = self._authors(filename=filename)
         if filename is None:
-            for path,authors in self._author_hacks.items():
-                authors.update(authors)
+            for path,_authors in self._author_hacks.items():
+                authors.update(_authors)
         elif _utils.splitpath(filename) in self._author_hacks:
             authors.update(self._author_hacks[_utils.splitpath(filename)])
         return _utils.replace_aliases(