[pypy-commit] pypy py3k: fix translation

pjenvey noreply at buildbot.pypy.org
Fri Feb 8 06:34:18 CET 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r60952:338a5d152817
Date: 2013-02-07 21:33 -0800
http://bitbucket.org/pypy/pypy/changeset/338a5d152817/

Log:	fix translation

diff --git a/pypy/module/_io/interp_fileio.py b/pypy/module/_io/interp_fileio.py
--- a/pypy/module/_io/interp_fileio.py
+++ b/pypy/module/_io/interp_fileio.py
@@ -250,7 +250,7 @@
         if self.fd >= 0 and self.closefd:
             try:
                 r = space.unicode_w(space.repr(w_source))
-                space.warn("unclosed file %s" % r, space.w_ResourceWarning)
+                space.warn(u"unclosed file %s" % r, space.w_ResourceWarning)
             except OperationError as e:
                 # Spurious errors can appear at shutdown
                 if e.match(space, space.w_Warning):


More information about the pypy-commit mailing list