[pypy-svn] r34439 - pypy/dist/lib-python/modified-2.4.1

ac at codespeak.net ac at codespeak.net
Thu Nov 9 19:53:12 CET 2006


Author: ac
Date: Thu Nov  9 19:53:11 2006
New Revision: 34439

Modified:
   pypy/dist/lib-python/modified-2.4.1/socket.py
Log:
Go back to allways simulating dup() and makefile() as a translated pypy does not pass all tests in test_socket.py

Modified: pypy/dist/lib-python/modified-2.4.1/socket.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/socket.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/socket.py	Thu Nov  9 19:53:11 2006
@@ -195,8 +195,7 @@
     for _m in _socketmethods:
         exec _s % (_m, _m, _m, _m)
     del _m, _s
-if not hasattr(socket, 'dup'): # Simulate dup() and makefile()
-    socket = SocketType = _socketobject
+socket = SocketType = _socketobject
 
 class _fileobject(object):
     """Faux file object attached to a socket object."""



More information about the Pypy-commit mailing list