]> granicus.if.org Git - python/commitdiff
Do not try to fix bugs while sleeping.
authorFred Drake <fdrake@acm.org>
Sat, 9 Sep 2000 06:29:35 +0000 (06:29 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 9 Sep 2000 06:29:35 +0000 (06:29 +0000)
Paid more attention to the comments on the report; Martin suggested just
not having a __del__() method, which makes more sense in this case.  So
I have removed it.

This closes SourceForge bug #113850.  Again.

Lib/posixfile.py

index 18f72fd0e5836fcc338af07d6f8cda996b178f90..23f2c8522e3f2747f1d30bfb2d3c677d363a6b3f 100644 (file)
@@ -67,10 +67,6 @@ class _posixfile_:
                 (self.states[file.closed], file.name, file.mode, \
                  hex(id(self))[2:])
 
-    def __del__(self):
-        if hasattr(self, "_file_"):
-            self._file_.close()
-
     #
     # Initialization routines
     #