mercurial/windows.py
changeset 36487 0e8b76644e20
parent 36445 0cb09c322647
child 37098 e24802ea8dbd
--- a/mercurial/windows.py	Tue Feb 27 14:41:24 2018 +0530
+++ b/mercurial/windows.py	Tue Feb 27 14:42:30 2018 +0530
@@ -316,7 +316,7 @@
     # Work around "popen spawned process may not write to stdout
     # under windows"
     # http://bugs.python.org/issue1366
-    command += " 2> %s" % os.devnull
+    command += " 2> %s" % pycompat.bytestr(os.devnull)
     return os.popen(quotecommand(command), mode)
 
 def explainexit(code):