From d087c88a9f89b827dfa02c90c1205073cc608db7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 19 Oct 2012 21:47:55 -0400 Subject: [PATCH] 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. --- README | 4 ++-- update_copyright/project.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.26.2