[pypy-svn] r61010 - pypy/trunk/lib-python/modified-2.5.2

fijal at codespeak.net fijal at codespeak.net
Thu Jan 15 17:28:06 CET 2009


Author: fijal
Date: Thu Jan 15 17:28:04 2009
New Revision: 61010

Modified:
   pypy/trunk/lib-python/modified-2.5.2/socket.py
Log:
I *think* this is what the test was pointing out. Completely unsure though,
since _drop attr is a bit mystic to me


Modified: pypy/trunk/lib-python/modified-2.5.2/socket.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/socket.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/socket.py	Thu Jan 15 17:28:04 2009
@@ -247,6 +247,8 @@
                 if self._sock:
                     s = self._sock
                     self._sock = None
+                    if self._close:
+                        s.close()
                     s._drop()
 
     def __del__(self):



More information about the Pypy-commit mailing list