diff mercurial/cmdutil.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 2e0805f59736
children e7cfe3587ea4 bacde764fba0
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Aug 23 18:19:19 2012 -0500
+++ b/mercurial/cmdutil.py	Sat Aug 04 07:14:40 2012 +0200
@@ -515,7 +515,7 @@
         sys.stdout.flush()
         sys.stderr.flush()
 
-        nullfd = os.open(util.nulldev, os.O_RDWR)
+        nullfd = os.open(os.devnull, os.O_RDWR)
         logfilefd = nullfd
         if logfile:
             logfilefd = os.open(logfile, os.O_RDWR | os.O_CREAT | os.O_APPEND)