[Zodb-checkins] CVS: ZODB3/ZODB - fsdump.py:1.3.72.3
Jeremy Hylton
jeremy at zope.com
Thu May 22 12:31:02 EDT 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv17337
Modified Files:
Tag: ZODB3-3_1-branch
fsdump.py
Log Message:
Python2.1 compatibility.
=== ZODB3/ZODB/fsdump.py 1.3.72.2 => 1.3.72.3 ===
--- ZODB3/ZODB/fsdump.py:1.3.72.2 Fri Nov 15 12:18:55 2002
+++ ZODB3/ZODB/fsdump.py Thu May 22 11:31:01 2003
@@ -103,7 +103,7 @@
pos = self.file.tell()
h = self.file.read(TRANS_HDR_LEN)
if not h:
- return False
+ return 0
tid, stlen, status, ul, dl, el = struct.unpack(TRANS_HDR, h)
end = pos + U64(stlen)
print >> self.dest, "=" * 60
@@ -126,7 +126,7 @@
self.dump_data(pos)
stlen2 = self.file.read(8)
print >> self.dest, "redundant trec len: %d" % U64(stlen2)
- return True
+ return 1
def dump_data(self, tloc):
pos = self.file.tell()
More information about the Zodb-checkins
mailing list