Mercurial > public > mercurial-scm > hg-stable
diff mercurial/subrepo.py @ 41530:d65519e5dd04
py3: remove unneeded fsencode() from gitsubrepo
Here p.stdout isn't a TextIO. read() must return bytes.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 02 Feb 2019 15:21:35 +0900 |
parents | fa7d4e6a0c98 |
children | 549f956ba2a9 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Fri Jan 25 14:41:53 2019 -0800 +++ b/mercurial/subrepo.py Sat Feb 02 15:21:35 2019 +0900 @@ -1286,7 +1286,7 @@ 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()