[pypy-svn] r15083 - pypy/dist/pypy/rpython/module

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Jul 26 00:02:54 CEST 2005


Author: cfbolz
Date: Tue Jul 26 00:02:53 2005
New Revision: 15083

Modified:
   pypy/dist/pypy/rpython/module/ll_os_path.py
Log:
(pedronis, cfbolz)
trying to fix os.path.exists. still failing tests


Modified: pypy/dist/pypy/rpython/module/ll_os_path.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os_path.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_os_path.py	Tue Jul 26 00:02:53 2005
@@ -7,15 +7,25 @@
 import os
 from pypy.rpython.rstr import STR
 from pypy.rpython.module.support import to_rstr, from_rstr, ll_strcpy
-
+from pypy.rpython.module.ll_os import ll_os_stat
 
 # Does a path exist?
 # This is false for dangling symbolic links.
 
+## This version produces nonsense, keeping it for reference
+## def ll_os_path_exists(path):
+##     """Test whether a path exists"""
+##     try:
+##         st = os.stat(from_rstr(path))
+##     except OSError:
+##         return False
+##     return True
+
 def ll_os_path_exists(path):
     """Test whether a path exists"""
     try:
-        st = os.stat(from_rstr(path))
+        st = ll_os_stat(path)
     except OSError:
         return False
     return True
+



More information about the Pypy-commit mailing list