Fix line -> date typo from incomplete splitout of GitBackend._dates().
authorW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 01:40:28 +0000 (21:40 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 01:40:28 +0000 (21:40 -0400)
update_copyright/vcs/git.py

index fd6b85f72e99a68e640c20240d7ea8ae9c2d6d38..1b58ed89057d1acec3c187022ad92e6d51e49bd8 100644 (file)
@@ -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):