From 494671b10779b5e5237967cc62f5114cd388fb25 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 16 Feb 2012 14:34:58 -0500 Subject: [PATCH] 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`. --- update_copyright/vcs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.26.2