[pypy-commit] pypy space-newtext: windows fix

arigo pypy.commits at gmail.com
Wed Feb 15 15:28:14 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: space-newtext
Changeset: r90159:ffb3740400e8
Date: 2017-02-15 21:27 +0100
http://bitbucket.org/pypy/pypy/changeset/ffb3740400e8/

Log:	windows fix

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
@@ -428,7 +428,7 @@
         if space.isinstance_w(w_path, space.w_unicode):
             path = FileEncoder(space, w_path)
             fullpath = rposix.getfullpathname(path)
-            w_fullpath = space.newtext(fullpath)
+            w_fullpath = space.newunicode(fullpath)
         else:
             path = space.str0_w(w_path)
             fullpath = rposix.getfullpathname(path)


More information about the pypy-commit mailing list