]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
I saw errors from _fileobject.__del__ about missing self._sock. This
authorGuido van Rossum <guido@python.org>
Thu, 29 May 2003 14:36:57 +0000 (14:36 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 29 May 2003 14:36:57 +0000 (14:36 +0000)
commit65f8cedd4a9820e5d069ece0194b7da0b1e4e33c
tree007ee4a343cb28ccfe79f026a0821a13c77ca55e
parentbb1861a996f659621a3d9de875027679ce1926eb
I saw errors from _fileobject.__del__ about missing self._sock.  This
can happen if __init__ doesn't complete.  Fix it by adding a
try/except to __del__.
Lib/socket.py