mercurial/windows.py
branchstable
changeset 17391 fc24c10424d2
parent 17223 c315842cb25f
child 17424 e7cfe3587ea4
--- 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):