Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 17391:fc24c10424d2 stable
util: replace util.nulldev with os.devnull
Python since 2.4 has supported os.devnull so having util.nulldev
is unnecessary.
author | Ross Lagerwall <rosslagerwall@gmail.com> |
---|---|
date | Sat, 04 Aug 2012 07:14:40 +0200 |
parents | c315842cb25f |
children | e7cfe3587ea4 |
line wrap: on
line diff
--- a/mercurial/windows.py Thu Aug 23 18:19:19 2012 -0500 +++ b/mercurial/windows.py Sat Aug 04 07:14:40 2012 +0200 @@ -24,7 +24,6 @@ testpid = win32.testpid unlink = win32.unlink -nulldev = 'NUL:' umask = 0022 # wrap osutil.posixfile to provide friendlier exceptions @@ -174,7 +173,7 @@ # Work around "popen spawned process may not write to stdout # under windows" # http://bugs.python.org/issue1366 - command += " 2> %s" % nulldev + command += " 2> %s" % os.devnull return os.popen(quotecommand(command), mode) def explainexit(code):