# HG changeset patch # User Yuya Nishihara # Date 2019-02-02 06:21:35 # Node ID 921b4ffa9ced910ea79cb839b86a06287710f29c # Parent 3a3b053d0882a33ba7ea667052e445b193ffa4df py3: remove unneeded fsencode() from gitsubrepo Here p.stdout isn't a TextIO. read() must return bytes. diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1286,7 +1286,7 @@ class gitsubrepo(abstractsubrepo): if stream: return p.stdout, None - retdata = pycompat.fsencode(p.stdout.read().strip()) + retdata = p.stdout.read().strip() # wait for the child to exit to avoid race condition. p.wait()