[pypy-svn] r54855 - in pypy/branch/win32port/pypy: config rlib
afa at codespeak.net
afa at codespeak.net
Sat May 17 18:03:48 CEST 2008
Author: afa
Date: Sat May 17 18:03:42 2008
New Revision: 54855
Modified:
pypy/branch/win32port/pypy/config/pypyoption.py
pypy/branch/win32port/pypy/rlib/getnameinfo.py
Log:
Attempt to translate the _socket module on win32
Modified: pypy/branch/win32port/pypy/config/pypyoption.py
==============================================================================
--- pypy/branch/win32port/pypy/config/pypyoption.py (original)
+++ pypy/branch/win32port/pypy/config/pypyoption.py Sat May 17 18:03:42 2008
@@ -40,7 +40,7 @@
del working_modules["_rawffi"]
# modules with broken windows support
del working_modules["mmap"] # MLS - Added 5/11/08 - broken
- del working_modules["_socket"] # MLS - Added 5/11/08 - broken
+ #del working_modules["_socket"] # MLS - Added 5/11/08 - broken
del working_modules["select"] # MLS - Added 5/11/08 - broken
Modified: pypy/branch/win32port/pypy/rlib/getnameinfo.py
==============================================================================
--- pypy/branch/win32port/pypy/rlib/getnameinfo.py (original)
+++ pypy/branch/win32port/pypy/rlib/getnameinfo.py Sat May 17 18:03:42 2008
@@ -4,7 +4,7 @@
"""
from pypy.rlib import _rsocket_rffi as _c
from pypy.rlib.rsocket import RSocketError, GAIError
-from pypy.rpython.lltypesystem import lltype, rffi
+from pypy.rpython.lltypesystem import lltype, rffi, ll_str
from pypy.rlib.rarithmetic import r_uint
NI_NOFQDN = 0x00000001
@@ -24,7 +24,7 @@
if sp:
serv = rffi.charp2str(sp.c_s_name)
else:
- serv = "%d" % _c.ntohs(sin_port)
+ serv = ll_str.ll_int2dec(r_uint(_c.ntohs(sin_port)))
return serv
More information about the Pypy-commit
mailing list