mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
16c4aa441b
commit
b37bdc2c7c
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue