SVN: ZODB/trunk/src/ZEO/cache.py Close input file nefore renaming or removing it.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100712220152.5AA87941DF__25463.5585275993$1278972118$gmane$org@cvs.zope.org>
Log message for revision 114662:
  Close input file nefore renaming or removing it.
  

Changed:
  U   ZODB/trunk/src/ZEO/cache.py

-=-
Modified: ZODB/trunk/src/ZEO/cache.py
===================================================================
--- ZODB/trunk/src/ZEO/cache.py	2010-07-12 22:01:10 UTC (rev 114661)
+++ ZODB/trunk/src/ZEO/cache.py	2010-07-12 22:01:52 UTC (rev 114662)
@@ -210,6 +210,7 @@
         try:
             self._initfile(fsize)
         except:
+            self.f.close()
             if not path:
                 raise # unrecoverable temp file error :(
             badpath = path+'.bad'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.