Mercurial > hg
changeset 35613:991f0be9dc39
py3: use bytes instead of pycompat.bytestr
Follow up for 35fb3367f72d.
Differential Revision: https://phab.mercurial-scm.org/D1854
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 12 Jan 2018 18:11:05 +0530 |
parents | edf52be98978 |
children | 6d6d20658cce |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Fri Jan 12 17:10:55 2018 +0100 +++ b/mercurial/subrepo.py Fri Jan 12 18:11:05 2018 +0530 @@ -389,14 +389,14 @@ if util.safehasattr(repo, '_subparent'): source = util.url(repo._subsource) if source.isabs(): - return pycompat.bytestr(source) + return bytes(source) source.path = posixpath.normpath(source.path) parent = _abssource(repo._subparent, push, abort=False) if parent: parent = util.url(util.pconvert(parent)) parent.path = posixpath.join(parent.path or '', source.path) parent.path = posixpath.normpath(parent.path) - return pycompat.bytestr(parent) + return bytes(parent) else: # recursion reached top repo if util.safehasattr(repo, '_subtoppath'): return repo._subtoppath