# HG changeset patch # User Yuya Nishihara # Date 1549088495 -32400 # Node ID d65519e5dd044f6f7d6366eba20f460635169b5c # Parent 7dc160a57025b1893de962e7b9130eeb98317cef py3: remove unneeded fsencode() from gitsubrepo Here p.stdout isn't a TextIO. read() must return bytes. diff -r 7dc160a57025 -r d65519e5dd04 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()