From 30e51d38f22f821fa52e486e3915f07267ac3891 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 16 Feb 2012 14:47:23 -0500 Subject: [PATCH] Rename authors -> _authors in VCSBackend.authors() loop to avoid clobber. The previous version had been clobbering the raw VCS results. --- update_copyright/vcs/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.26.2