##// END OF EJS Templates
py3: convert os.devnull to bytes using pycompat.bytestr...
Pulkit Goyal -
r36475:0e8b7664 default
parent child Browse files
Show More
@@ -339,7 +339,7 b' class commandline(object):'
339 pass
339 pass
340 cmdline = [util.shellquote(arg) for arg in cmdline]
340 cmdline = [util.shellquote(arg) for arg in cmdline]
341 if not self.ui.debugflag:
341 if not self.ui.debugflag:
342 cmdline += ['2>', os.devnull]
342 cmdline += ['2>', pycompat.bytestr(os.devnull)]
343 cmdline = ' '.join(cmdline)
343 cmdline = ' '.join(cmdline)
344 return cmdline
344 return cmdline
345
345
@@ -316,7 +316,7 b" 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):
General Comments 0
You need to be logged in to leave comments. Login now