equal
deleted
inserted
replaced
309 if sys.version_info < (2, 7, 1): |
309 if sys.version_info < (2, 7, 1): |
310 # Python versions since 2.7.1 do this extra quoting themselves |
310 # Python versions since 2.7.1 do this extra quoting themselves |
311 return '"' + cmd + '"' |
311 return '"' + cmd + '"' |
312 return cmd |
312 return cmd |
313 |
313 |
314 def popen(command, mode='r'): |
|
315 # Work around "popen spawned process may not write to stdout |
|
316 # under windows" |
|
317 # http://bugs.python.org/issue1366 |
|
318 command += " 2> %s" % pycompat.bytestr(os.devnull) |
|
319 return os.popen(quotecommand(command), mode) |
|
320 |
|
321 def explainexit(code): |
314 def explainexit(code): |
322 return _("exited with status %d") % code, code |
315 return _("exited with status %d") % code, code |
323 |
316 |
324 # if you change this stub into a real check, please try to implement the |
317 # if you change this stub into a real check, please try to implement the |
325 # username and groupname functions above, too. |
318 # username and groupname functions above, too. |