py3: remove unneeded fsencode() from gitsubrepo
authorYuya Nishihara <yuya@tcha.org>
Sat, 02 Feb 2019 15:21:35 +0900
changeset 41516 d65519e5dd04
parent 41515 7dc160a57025
child 41517 549f956ba2a9
py3: remove unneeded fsencode() from gitsubrepo Here p.stdout isn't a TextIO. read() must return bytes.
mercurial/subrepo.py
--- 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()