Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r53600:8e9bdbfb77b2
Date: 2012-03-14 13:45 -0700
http://bitbucket.org/pypy/pypy/changeset/8e9bdbfb77b2/
Log: fix getcwd on windows. a good test for this is really pending
surrogateescape (PEP 383) support
diff --git a/pypy/module/posix/interp_posix.py
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -422,7 +422,7 @@
def getcwd(space):
"""Return the current working directory as a string."""
try:
- cur = os.getcwdb()
+ cur = os.getcwdu()
except OSError, e:
raise wrap_oserror(space, e)
else:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit