[pypy-commit] pypy stdlib-2.7.8: Fix translation error

alex_gaynor noreply at buildbot.pypy.org
Sat Aug 23 07:56:29 CEST 2014


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: stdlib-2.7.8
Changeset: r72994:ad3eef187a45
Date: 2014-08-22 22:56 -0700
http://bitbucket.org/pypy/pypy/changeset/ad3eef187a45/

Log:	Fix translation error

diff --git a/pypy/module/_io/interp_bufferedio.py b/pypy/module/_io/interp_bufferedio.py
--- a/pypy/module/_io/interp_bufferedio.py
+++ b/pypy/module/_io/interp_bufferedio.py
@@ -921,14 +921,16 @@
         if writer:
             if self.w_writer is None:
                 raise OperationError(
-                    space.w_ValueError, "I/O operation on uninitialized object"
+                    space.w_ValueError,
+                    space.wrap("I/O operation on uninitialized object")
                 )
             w_meth = space.getattr(self.w_writer, space.wrap(method))
             w_result = space.call_args(w_meth, __args__)
         if reader:
             if self.w_reader is None:
                 raise OperationError(
-                    space.w_ValueError, "I/O operation on uninitialized object"
+                    space.w_ValueError,
+                    space.wrap("I/O operation on uninitialized object")
                 )
             w_meth = space.getattr(self.w_reader, space.wrap(method))
             w_result = space.call_args(w_meth, __args__)


More information about the pypy-commit mailing list