From: W. Trevor King Date: Thu, 16 Feb 2012 19:34:58 +0000 (-0500) Subject: Fix VCSBackend.original_year() bug in applying per-file year_hacks. X-Git-Tag: v0.3~4 X-Git-Url: http://git.tremily.us/?p=update-copyright.git;a=commitdiff_plain;h=494671b10779b5e5237967cc62f5114cd388fb25;hp=ff906116476dd7a654b7064e5752a3a78de94faf Fix VCSBackend.original_year() bug in applying per-file year_hacks. The per-file value is a single integer, so use `.add` instead of `.update`. --- diff --git a/update_copyright/vcs/__init__.py b/update_copyright/vcs/__init__.py index c4f69f7..1133795 100644 --- a/update_copyright/vcs/__init__.py +++ b/update_copyright/vcs/__init__.py @@ -43,7 +43,7 @@ class VCSBackend (object): if filename is None: years.update(self._year_hacks.values()) elif _utils.splitpath(filename) in self._year_hacks: - years.update(self._year_hacks[_utils.splitpath(filename)]) + years.add(self._year_hacks[_utils.splitpath(filename)]) years = sorted(years) return years[0]