[Zope-Checkins] CVS: Packages - FileStorage.py:1.62
andreasjung@cvs.baymountain.com
andreasjung@cvs.baymountain.com
Thu, 19 Jul 2001 08:03:44 -0400
Update of /cvs-repository/Packages/ZODB
In directory cvs.baymountain.com:/tmp/cvs-serv15224/lib/python/ZODB
Modified Files:
FileStorage.py
Log Message:
Collector #2412: a read-only FileStorage has not been closed
properly.
====== Updated Packages/FileStorage.py to v 1.62 ======
def close(self):
self._file.close()
- self._lock_file.close()
- self._tfile.close()
+ if hasattr(self,'_lock_file'): self._lock_file.close()
+ if self._tfile: self._tfile.close()
try: self._save_index()
except: pass # We don't care if this fails.