I should have fixed .authors() back when I fixed .original_year().
Now the filename handling is identical, which should make it easier
for people to keep future updates in sync.
years.update(self._year_hacks.values())
else:
filename = _os_path.relpath(filename, self._root)
- if _utils.splitpath(filename) in self._year_hacks:
- years.add(self._year_hacks[_utils.splitpath(filename)])
+ splitpath = _utils.splitpath(filename)
+ if splitpath in self._year_hacks:
+ years.add(self._year_hacks[splitpath])
years = sorted(years)
return years[0]