]> granicus.if.org Git - python/commit
The _socketobject class has no need for a __del__ method: all it did was
authorGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 18:11:36 +0000 (18:11 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 18:11:36 +0000 (18:11 +0000)
commit715f970969e7acb4ba66b6369ce8bd9d88fc6ef1
treef0c081160c798fe2f2070d612fd3c72eebdb0fa8
parent48b7969af8aa537c306eeec8d22235f360c229ed
The _socketobject class has no need for a __del__ method: all it did was
to delete the reference to self._sock, and the regular destructor will
do that just fine.  This made some hacks in close() unnecessary.

The _fileobject class still has a __del__ method, because it must flush.
Lib/socket.py