From: W. Trevor King Date: Thu, 15 Mar 2012 01:40:28 +0000 (-0400) Subject: Fix line -> date typo from incomplete splitout of GitBackend._dates(). X-Git-Tag: v0.4~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=559571c0bcbe7af5f27778adffae4ff4d842cba8;p=update-copyright.git Fix line -> date typo from incomplete splitout of GitBackend._dates(). --- diff --git a/update_copyright/vcs/git.py b/update_copyright/vcs/git.py index fd6b85f..1b58ed8 100644 --- a/update_copyright/vcs/git.py +++ b/update_copyright/vcs/git.py @@ -53,7 +53,7 @@ class GitBackend (_VCSBackend): def _years(self, filename=None): dates = self._dates(filename=filename) - years = set(int(line.split('-', 1)[0]) for date in dates) + years = set(int(date.split('-', 1)[0]) for date in dates) return years def _authors(self, filename=None):