Author: Alex Gaynor <alex.gay...@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__) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit