[pypy-svn] r76217 - in pypy/branch/unicode_filename-2/pypy: rlib rpython/module
afa at codespeak.net
afa at codespeak.net
Wed Jul 14 22:06:33 CEST 2010
Author: afa
Date: Wed Jul 14 22:06:32 2010
New Revision: 76217
Modified:
pypy/branch/unicode_filename-2/pypy/rlib/rposix.py
pypy/branch/unicode_filename-2/pypy/rpython/module/ll_os.py
Log:
Fix fix
Modified: pypy/branch/unicode_filename-2/pypy/rlib/rposix.py
==============================================================================
--- pypy/branch/unicode_filename-2/pypy/rlib/rposix.py (original)
+++ pypy/branch/unicode_filename-2/pypy/rlib/rposix.py Wed Jul 14 22:06:32 2010
@@ -92,6 +92,6 @@
@specialize.argtype(0)
def chdir(path):
if isinstance(path, str):
- return os.access(path)
+ return os.chdir(path)
else:
- return os.access(path.encode())
+ return os.chdir(path.encode())
Modified: pypy/branch/unicode_filename-2/pypy/rpython/module/ll_os.py
==============================================================================
--- pypy/branch/unicode_filename-2/pypy/rpython/module/ll_os.py (original)
+++ pypy/branch/unicode_filename-2/pypy/rpython/module/ll_os.py Wed Jul 14 22:06:32 2010
@@ -1413,7 +1413,7 @@
export_name="ll_os.ll_os_chdir")
@registering_unicode_version(os.chdir, 1, [0], sys.platform=='win32')
- def register_os_chdir(self):
+ def register_os_chdir_unicode(self):
os_wchdir = self.llexternal(underscore_on_windows+'wchdir', [rffi.CWCHARP], rffi.INT)
def chdir_llimpl(path):
More information about the Pypy-commit
mailing list