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('|'))
+ str(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
aliases = {}
for author in parser.options('aliases'):
_aliases = parser.get('aliases', author)
- author = unicode(author, encoding)
+ author = str(author, encoding)
aliases[author] = set(
- unicode(a.strip(), encoding) for a in _aliases.split('|'))
+ str(a.strip(), encoding) for a in _aliases.split('|'))
self._aliases = aliases
if self._vcs is not None:
self._vcs._aliases = self._aliases
if encoding is None:
encoding = _ENCODING
if stdout is not None:
- stdout = unicode(stdout, encoding)
+ stdout = str(stdout, encoding)
if stderr is not None:
- stderr = unicode(stderr, encoding)
+ stderr = str(stderr, encoding)
if status not in expect:
raise ValueError([args, status, stdout, stderr])
return status, stdout, stderr