]> granicus.if.org Git - python/commit
When the socket is closed, don't just assign 0 to self._sock.
authorGuido van Rossum <guido@python.org>
Sat, 18 Aug 2001 01:23:20 +0000 (01:23 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 18 Aug 2001 01:23:20 +0000 (01:23 +0000)
commite5e50591a477f90203219898e02a603ba6a9d71b
treea69c6961d5734146b808b6de75219d1be81e5047
parent241d69c11babc3641825fa9be4dee426652f8c40
When the socket is closed, don't just assign 0 to self._sock.
This breaks software that excepts a socket.error but not an
AttributeError.
Lib/socket.py