mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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
1 changed files with 0 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue