From: W. Trevor King Date: Thu, 16 Feb 2012 19:47:23 +0000 (-0500) Subject: Rename authors -> _authors in VCSBackend.authors() loop to avoid clobber. X-Git-Tag: v0.3~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30e51d38f22f821fa52e486e3915f07267ac3891;p=update-copyright.git Rename authors -> _authors in VCSBackend.authors() loop to avoid clobber. The previous version had been clobbering the raw VCS results. --- diff --git a/update_copyright/vcs/__init__.py b/update_copyright/vcs/__init__.py index 1133795..17281ab 100644 --- a/update_copyright/vcs/__init__.py +++ b/update_copyright/vcs/__init__.py @@ -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(