[Zodb-checkins] SVN: ZODB/branches/3.9/src/ZEO/cache.py Close input file nefore renaming or removing it.
Jim Fulton
jim at zope.com
Mon Sep 20 14:38:59 EDT 2010
Log message for revision 116677:
Close input file nefore renaming or removing it.
Changed:
U ZODB/branches/3.9/src/ZEO/cache.py
-=-
Modified: ZODB/branches/3.9/src/ZEO/cache.py
===================================================================
--- ZODB/branches/3.9/src/ZEO/cache.py 2010-09-20 18:35:00 UTC (rev 116676)
+++ ZODB/branches/3.9/src/ZEO/cache.py 2010-09-20 18:38:59 UTC (rev 116677)
@@ -210,6 +210,7 @@
try:
self._initfile(fsize)
except:
+ self.f.close()
if not path:
raise # unrecoverable temp file error :(
badpath = path+'.bad'
More information about the Zodb-checkins
mailing list