# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-01-12 12:41:05 # Node ID 991f0be9dc39c402d63a4a8f19cde052095c4689 # Parent edf52be98978599352256ff4a2fb71690166125f py3: use bytes instead of pycompat.bytestr Follow up for 35fb3367f72d. Differential Revision: https://phab.mercurial-scm.org/D1854 diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -389,14 +389,14 @@ def _abssource(repo, push=False, abort=T 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