[pypy-svn] r69745 - pypy/trunk/pypy/module/posix

afa at codespeak.net afa at codespeak.net
Mon Nov 30 09:17:41 CET 2009


Author: afa
Date: Mon Nov 30 09:17:40 2009
New Revision: 69745

Modified:
   pypy/trunk/pypy/module/posix/interp_posix.py
Log:
Fix translation on Windows, which was broken by the unconditional access to os.WCOREDUMP.__doc__


Modified: pypy/trunk/pypy/module/posix/interp_posix.py
==============================================================================
--- pypy/trunk/pypy/module/posix/interp_posix.py	(original)
+++ pypy/trunk/pypy/module/posix/interp_posix.py	Mon Nov 30 09:17:40 2009
@@ -822,8 +822,9 @@
     return WSTAR
 
 for name in RegisterOs.w_star:
-    func = declare_new_w_star(name)
-    globals()[name] = func
+    if hasattr(os, name):
+        func = declare_new_w_star(name)
+        globals()[name] = func
 
 def ttyname(space, fd):
     try:



More information about the Pypy-commit mailing list