From b37bdc2c7c35f1aa75535f273c1c67dad32873a0 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Sat, 9 Sep 2000 06:29:35 +0000 Subject: [PATCH] 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. --- Lib/posixfile.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Lib/posixfile.py b/Lib/posixfile.py index 18f72fd0e58..23f2c8522e3 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 #