From: W. Trevor King Date: Sat, 20 Oct 2012 01:47:55 +0000 (-0400) Subject: project: use pipe symbols (|) to separate author-hack authors. X-Git-Tag: v0.5~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d087c88a9f89b827dfa02c90c1205073cc608db7;p=update-copyright.git project: use pipe symbols (|) to separate author-hack authors. Author names may contain commas (e.g. "Red Hat, Inc."), but are unlikely to contain pipe symbols. --- diff --git a/README b/README index 2a61b61..2555ed0 100644 --- a/README +++ b/README @@ -133,11 +133,11 @@ Incomplete VCS history Sometimes files have authors or alterations not recorded in a project's VCS history. You can use the ``author-hacks`` section to add authors to a file, and the ``year-hacks`` section to adjust the -files original year. Author names should be comma-separated. For +files original year. Author names should be pipe-separated. For example:: [author-hacks] - path/to/file: John Doe , Jane Smith + path/to/file: John Doe | Jane Smith [year-hacks] path/to/another/file: 2009 diff --git a/update_copyright/project.py b/update_copyright/project.py index 679f569..9b06866 100644 --- a/update_copyright/project.py +++ b/update_copyright/project.py @@ -139,7 +139,7 @@ class Project (object): for path in parser.options('author-hacks'): authors = parser.get('author-hacks', path) author_hacks[tuple(path.split('/'))] = set( - unicode(a.strip(), encoding) for a in authors.split(',')) + unicode(a.strip(), encoding) for a in authors.split('|')) self._author_hacks = author_hacks if self._vcs is not None: self._vcs._author_hacks = self._author_hacks