[pypy-commit] pypy py3k: fix translation

pjenvey noreply at buildbot.pypy.org
Fri Apr 26 04:30:51 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63626:157809b274f4
Date: 2013-04-25 19:30 -0700
http://bitbucket.org/pypy/pypy/changeset/157809b274f4/

Log:	fix translation

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
@@ -1205,9 +1205,9 @@
         return space.w_None
     if _WIN32:
         if fd == 0:
-            return 'cp%d' % rwin32.GetConsoleCP()
+            return space.wrap('cp%d' % rwin32.GetConsoleCP())
         if fd in (1, 2):
-            return 'cp%d' % rwin32.GetConsoleOutputCP()
+            return space.wrap('cp%d' % rwin32.GetConsoleOutputCP())
     from rpython.rlib import rlocale
     if rlocale.HAVE_LANGINFO:
         codeset = rlocale.nl_langinfo(rlocale.CODESET)


More information about the pypy-commit mailing list