[Zodb-checkins] CVS: StandaloneZODB/ZODB - FileStorage.py:1.71.2.5
Jeremy Hylton
jeremy@zope.com
Wed, 7 Nov 2001 13:02:17 -0500
Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv5853/ZODB
Modified Files:
Tag: jeremy-Standby-branch
FileStorage.py
Log Message:
Add some whitespace
=== StandaloneZODB/ZODB/FileStorage.py 1.71.2.4 => 1.71.2.5 ===
def __init__(self, file, start=None, stop=None):
if isinstance(file, StringType):
- file=open(file, 'rb')
- self._file=file
- if file.read(4) != packed_version: raise FileStorageFormatError, name
+ file = open(file, 'rb')
+ self._file = file
+ if file.read(4) != packed_version:
+ raise FileStorageFormatError, name
file.seek(0,2)
- self._file_size=file.tell()
- self._pos=4L
+ self._file_size = file.tell()
+ self._pos = 4L
assert start is None or isinstance(start, StringType)
assert stop is None or isinstance(stop, StringType)
if start:
@@ -2063,10 +2064,10 @@
if len(h) < 16:
return
tid, stl = unpack(">8s8s", h)
- tl = U64(stl)
if tid >= start:
self._file.seek(-16, 1)
return
+ tl = U64(stl)
self._file.seek(tl - 8)
rtl = self._file.read(8)
if rtl != stl: