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

arigo at codespeak.net arigo at codespeak.net
Sun Apr 19 16:51:18 CEST 2009


Author: arigo
Date: Sun Apr 19 16:51:16 2009
New Revision: 64379

Modified:
   pypy/trunk/pypy/module/posix/interp_posix.py
Log:
Oups.


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	Sun Apr 19 16:51:16 2009
@@ -8,6 +8,7 @@
 from pypy.rpython.lltypesystem import lltype
 
 import os, sys
+_WIN = sys.platform == 'win32'
                           
 def open(space, fname, flag, mode=0777):
     """Open a file (for low level IO).
@@ -545,7 +546,7 @@
     """
     # XXX for now, ignore calls on directories on Windows,
     # just because they always give EACCES so far
-    if sys.platform == 'win32':
+    if _WIN:
         if os.path.isdir(path):
             return
 



More information about the Pypy-commit mailing list