X-Git-Url: http://git.tremily.us/?p=update-copyright.git;a=blobdiff_plain;f=update_copyright%2Fproject.py;h=2a2c33aad078e1e5ef55eedb75e2b0358b6d8794;hp=9b0686688feed1b3ad10fe4f2085da20167feb18;hb=e873cab4167ee94548cc57c44481ec8246c4a91d;hpb=d087c88a9f89b827dfa02c90c1205073cc608db7 diff --git a/update_copyright/project.py b/update_copyright/project.py index 9b06866..2a2c33a 100644 --- a/update_copyright/project.py +++ b/update_copyright/project.py @@ -28,11 +28,11 @@ from . import utils as _utils from .vcs.git import GitBackend as _GitBackend try: from .vcs.bazaar import BazaarBackend as _BazaarBackend -except ImportError, _bazaar_import_error: +except ImportError as _bazaar_import_error: _BazaarBackend = None try: from .vcs.mercurial import MercurialBackend as _MercurialBackend -except ImportError, _mercurial_import_error: +except ImportError as _mercurial_import_error: _MercurialBackend = None @@ -65,7 +65,7 @@ class Project (object): clean_section = section.replace('-', '_') try: loader = getattr(self, '_load_{}_conf'.format(clean_section)) - except AttributeError, e: + except AttributeError as e: _LOG.error('invalid {} section'.format(section)) raise loader(parser=parser) @@ -124,7 +124,7 @@ class Project (object): except _configparser.NoOptionError: pass else: - self._ignored_paths = [pth.strip() for pth in ignored.split(',')] + self._ignored_paths = [pth.strip() for pth in ignored.split('|')] try: pyfile = parser.get('files', 'pyfile') except _configparser.NoOptionError: @@ -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