changeset 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 7dc160a57025
children 549f956ba2a9
files mercurial/subrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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()