[Python-checkins] r82748 - python/branches/py3k/Lib/socket.py

benjamin.peterson python-checkins at python.org
Fri Jul 9 20:28:25 CEST 2010


Author: benjamin.peterson
Date: Fri Jul  9 20:28:25 2010
New Revision: 82748

Log:
remove SocketIO.__del__; close() can handle it

Modified:
   python/branches/py3k/Lib/socket.py

Modified: python/branches/py3k/Lib/socket.py
==============================================================================
--- python/branches/py3k/Lib/socket.py	(original)
+++ python/branches/py3k/Lib/socket.py	Fri Jul  9 20:28:25 2010
@@ -252,10 +252,6 @@
         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.


More information about the Python-checkins mailing list