diff --git a/Lib/socket.py b/Lib/socket.py index a82e48dceff..781887583cf 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -252,10 +252,6 @@ class SocketIO(io.RawIOBase): self._sock._decref_socketios() self._sock = None - def __del__(self): - if not self.closed: - self._sock._decref_socketios() - def getfqdn(name=''): """Get fully qualified domain name from name.