From: Fred Drake Date: Sat, 9 Sep 2000 06:29:35 +0000 (+0000) Subject: Do not try to fix bugs while sleeping. X-Git-Tag: v2.0b2~391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b37bdc2c7c35f1aa75535f273c1c67dad32873a0;p=thirdparty%2FPython%2Fcpython.git Do not try to fix bugs while sleeping. 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. --- diff --git a/Lib/posixfile.py b/Lib/posixfile.py index 18f72fd0e583..23f2c8522e3f 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -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 #