[Liblas-commits] r1106 - trunk/python/liblas

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Mar 17 12:56:04 EDT 2009


Author: hobu
Date: Tue Mar 17 12:56:03 2009
New Revision: 1106
URL: http://liblas.org/changeset/1106

Log:
clean up __del__ a bit when core is already deleted

Modified:
   trunk/python/liblas/file.py

Modified: trunk/python/liblas/file.py
==============================================================================
--- trunk/python/liblas/file.py	(original)
+++ trunk/python/liblas/file.py	Tue Mar 17 12:56:03 2009
@@ -83,7 +83,7 @@
             self.mode = 2
             files.append(self.filename)
     def __del__(self):
-        if not self.handle: return
+        if not self.handle or not core: return
         self.close()
 
     def close(self):


More information about the Liblas-commits mailing list