--- a/mercurial/dispatch.py Sun Mar 25 16:39:17 2018 +0900
+++ b/mercurial/dispatch.py Sun Mar 25 16:35:24 2018 +0900
@@ -83,7 +83,7 @@
def run():
"run the command in sys.argv"
- _initstdio()
+ initstdio()
req = request(pycompat.sysargv[1:])
err = None
try:
@@ -112,7 +112,7 @@
sys.exit(status & 255)
if pycompat.ispy3:
- def _initstdio():
+ def initstdio():
pass
def _silencestdio():
@@ -132,7 +132,7 @@
except IOError:
pass
else:
- def _initstdio():
+ def initstdio():
for fp in (sys.stdin, sys.stdout, sys.stderr):
procutil.setbinary(fp)