SVN: ZODB/branches/3.9/src/ZEO/cache.py Close input file nefore renaming or removing it.
Jim Fulton <[email protected]> Mon, 20 Sep 2010 14:38:59 -0400 (EDT)
| Newsgroups | gmane.comp.python.zope.zodb.cvs |
|---|---|
| Message-ID | <20100920183859.E259A80270D__14374.3298984647$1285007948$gmane$org@cvs.zope.org> |
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'