[Zodb-checkins] CVS: ZODB4/src/zodb/storage/file - pack.py:1.10

Jeremy Hylton jeremy at zope.com
Tue Jun 24 17:59:22 EDT 2003


Update of /cvs-repository/ZODB4/src/zodb/storage/file
In directory cvs.zope.org:/tmp/cvs-serv16823

Modified Files:
	pack.py 
Log Message:
Overflow can't happen in 2.2; this was a 2.1 only issue.


=== ZODB4/src/zodb/storage/file/pack.py 1.9 => 1.10 ===
--- ZODB4/src/zodb/storage/file/pack.py:1.9	Tue Jun 24 16:38:39 2003
+++ ZODB4/src/zodb/storage/file/pack.py	Tue Jun 24 16:59:19 2003
@@ -81,7 +81,7 @@
         self.findReachableFromFuture()
 
     def buildPackIndex(self):
-        pos = 1024L
+        pos = 1024
         while pos < self.eof:
             th = self._read_txn_header(pos)
             if th.tid > self.packtime:
@@ -328,7 +328,7 @@
         return pos
 
     def copyToPacktime(self):
-        offset = 0L  # the amount of space freed by packing
+        offset = 0  # the amount of space freed by packing
         pos = self._metadata_size
         new_pos = pos
 
@@ -376,7 +376,7 @@
         If any data records are copied, also write txn header (th).
         """
         copy = False
-        new_tpos = 0L
+        new_tpos = 0
         tend = pos + th.tlen
         pos += th.headerlen()
         while pos < tend:




More information about the Zodb-checkins mailing list