mercurial/windows.py
changeset 36457 0e8b76644e20
parent 36415 0cb09c322647
child 37095 e24802ea8dbd
equal deleted inserted replaced
36456:9ff5cbfbc26a 36457:0e8b76644e20
   314 
   314 
   315 def popen(command, mode='r'):
   315 def popen(command, mode='r'):
   316     # Work around "popen spawned process may not write to stdout
   316     # Work around "popen spawned process may not write to stdout
   317     # under windows"
   317     # under windows"
   318     # http://bugs.python.org/issue1366
   318     # http://bugs.python.org/issue1366
   319     command += " 2> %s" % os.devnull
   319     command += " 2> %s" % pycompat.bytestr(os.devnull)
   320     return os.popen(quotecommand(command), mode)
   320     return os.popen(quotecommand(command), mode)
   321 
   321 
   322 def explainexit(code):
   322 def explainexit(code):
   323     return _("exited with status %d") % code, code
   323     return _("exited with status %d") % code, code
   324 
   324