From: W. Trevor King Date: Sat, 20 Oct 2012 01:51:39 +0000 (-0400) Subject: project: for consistency, also separate alias authors with pipes. X-Git-Tag: v0.5~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=acfec4340bfa7c668e6c06c208ad6ba924300f91;p=update-copyright.git project: for consistency, also separate alias authors with pipes. --- diff --git a/README b/README index 2555ed0..5d2e3ff 100644 --- a/README +++ b/README @@ -156,7 +156,7 @@ add an `aliases`` section to your config file, where the option names are the canonical name of the ...?. For example:: [aliases] - John Doe : John Doe, jdoe, J. Doe + John Doe : John Doe | jdoe | J. Doe Testing ======= diff --git a/update_copyright/project.py b/update_copyright/project.py index 9b06866..dd9b2a8 100644 --- a/update_copyright/project.py +++ b/update_copyright/project.py @@ -161,7 +161,7 @@ class Project (object): _aliases = parser.get('aliases', author) author = unicode(author, encoding) aliases[author] = set( - unicode(a.strip(), encoding) for a in _aliases.split(',')) + unicode(a.strip(), encoding) for a in _aliases.split('|')) self._aliases = aliases if self._vcs is not None: self._vcs._aliases = self._aliases