[pypy-svn] pypy fast-forward: Fix test_urllib2_localnet: urllib2 uses socket._fileobject directly...
amauryfa
commits-noreply at bitbucket.org
Wed Jan 12 00:05:54 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40610:c17f5344ae96
Date: 2011-01-12 00:05 +0100
http://bitbucket.org/pypy/pypy/changeset/c17f5344ae96/
Log: Fix test_urllib2_localnet: urllib2 uses socket._fileobject
directly...
diff --git a/lib-python/modified-2.7.0/socket.py b/lib-python/modified-2.7.0/socket.py
--- a/lib-python/modified-2.7.0/socket.py
+++ b/lib-python/modified-2.7.0/socket.py
@@ -301,7 +301,8 @@
if self._sock:
if self._close:
self._sock.close()
- self._sock._decref_socketios()
+ else:
+ self._sock._decref_socketios()
self._sock = None
def __del__(self):
More information about the Pypy-commit
mailing list