From acfec4340bfa7c668e6c06c208ad6ba924300f91 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 19 Oct 2012 21:51:39 -0400 Subject: [PATCH] project: for consistency, also separate alias authors with pipes. --- README | 2 +- update_copyright/project.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2