Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r84805:b5da016f9d1b
Date: 2016-05-28 17:53 -0700
http://bitbucket.org/pypy/pypy/changeset/b5da016f9d1b/

Log:    more fsdecode on paths

diff --git a/pypy/module/sys/state.py b/pypy/module/sys/state.py
--- a/pypy/module/sys/state.py
+++ b/pypy/module/sys/state.py
@@ -23,7 +23,7 @@
         pypydir = os.path.dirname(os.path.abspath(pypy.__file__))
         srcdir = os.path.dirname(pypydir)
         path = compute_stdlib_path(self, srcdir)
-        self.w_path = space.newlist([space.wrap(p) for p in path])
+        self.w_path = space.newlist([space.wrap_fsdecoded(p) for p in path])
 
 def get(space):
     return space.fromcache(State)
@@ -32,4 +32,4 @@
     """NOT_RPYTHON
     (should be removed from interpleveldefs before translation)"""
     from rpython.tool.udir import udir
-    return space.wrap(str(udir))
+    return space.wrap_fsdecoded(str(udir))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to