subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@apache.org
Subject svn commit: r1545933 - /subversion/trunk/contrib/server-side/fsfsverify.py
Date Wed, 27 Nov 2013 06:06:39 GMT
Author: cmpilato
Date: Wed Nov 27 06:06:39 2013
New Revision: 1545933

URL: http://svn.apache.org/r1545933
Log:
* contrib/server-side/fsfsverify.py
  (NodeRev.__init__): Replace a Python 2.5-ism with code that works on
    earlier Python versions.

Modified:
    subversion/trunk/contrib/server-side/fsfsverify.py

Modified: subversion/trunk/contrib/server-side/fsfsverify.py
URL: http://svn.apache.org/viewvc/subversion/trunk/contrib/server-side/fsfsverify.py?rev=1545933&r1=1545932&r2=1545933&view=diff
==============================================================================
--- subversion/trunk/contrib/server-side/fsfsverify.py (original)
+++ subversion/trunk/contrib/server-side/fsfsverify.py Wed Nov 27 06:06:39 2013
@@ -767,9 +767,10 @@ class NodeRev(object):
                   if not os.path.exists(str(nodeId.rev)):
                       print "Can't check %s" % repr(nodeId)
                       continue
-                  with open(str(nodeId.rev),'rb') as tmp:
-                      tmp.seek(nodeId.offset)
-                      idLine = tmp.readline()
+                  tmp = open(str(nodeId.rev),'rb')
+                  tmp.seek(nodeId.offset)
+                  idLine = tmp.readline()
+                  tmp.close()
               else:
                   f.seek(nodeId.offset)
                   idLine = f.readline()



Mime
View raw message