[pypy-svn] pypy fast-forward: socket.makefile() should add a reference to the socket, like py3k does.
amauryfa
commits-noreply at bitbucket.org
Mon Jan 10 20:21:22 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40567:147e74aa62bb
Date: 2011-01-10 20:20 +0100
http://bitbucket.org/pypy/pypy/changeset/147e74aa62bb/
Log: socket.makefile() should add a reference to the socket, like py3k
does.
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
@@ -217,6 +217,7 @@
Return a regular file object corresponding to the socket. The mode
and bufsize arguments are as for the built-in open() function."""
+ self._io_refs += 1
return _fileobject(self._sock, mode, bufsize)
def _decref_socketios(self):
More information about the Pypy-commit
mailing list