subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1485549 - /subversion/trunk/tools/dist/release.py
Date Thu, 23 May 2013 02:44:06 GMT
Author: danielsh
Date: Thu May 23 02:44:06 2013
New Revision: 1485549

URL: http://svn.apache.org/r1485549
Log:
Minor portability fix.

* tools/dist/release.py
  (get_nullfile): Use the portable alias for /dev/null.

Modified:
    subversion/trunk/tools/dist/release.py

Modified: subversion/trunk/tools/dist/release.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1485549&r1=1485548&r2=1485549&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Thu May 23 02:44:06 2013
@@ -199,8 +199,7 @@ def get_tmplfile(filename):
         return urllib2.urlopen(repos + '/trunk/tools/dist/templates/' + filename)
 
 def get_nullfile():
-    # This is certainly not cross platform
-    return open('/dev/null', 'w')
+    return open(os.path.devnull, 'w')
 
 def run_script(verbose, script):
     if verbose:



Mime
View raw message