diff -r 00e4bd97b095 -r 90c5ca718781 mercurial/windows.py --- a/mercurial/windows.py Sat Apr 07 20:50:38 2018 +0900 +++ b/mercurial/windows.py Sat Apr 07 21:09:21 2018 +0900 @@ -311,13 +311,6 @@ return '"' + cmd + '"' return cmd -def popen(command, mode='r'): - # Work around "popen spawned process may not write to stdout - # under windows" - # http://bugs.python.org/issue1366 - command += " 2> %s" % pycompat.bytestr(os.devnull) - return os.popen(quotecommand(command), mode) - def explainexit(code): return _("exited with status %d") % code, code