[Zodb-checkins] CVS: StandaloneZODB/ZODB - FileStorage.py:1.64

Barry Warsaw [email protected]
Wed, 5 Sep 2001 23:19:14 -0400


Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv26542

Modified Files:
	FileStorage.py 
Log Message:
FileIterator.__init__(): Open the file 'rb' since the iterator is a
read-only protocol.


=== StandaloneZODB/ZODB/FileStorage.py 1.63 => 1.64 ===
     
     def __init__(self, file):
-        if type(file) is type(''): file=open(file, 'r+b')
+        if type(file) is type(''): file=open(file, 'rb')
         self._file=file
         if file.read(4) != packed_version: raise FileStorageFormatError, name
         file.seek(0,2)