Author: Philip Jenvey <[email protected]>
Branch: stdlib-2.7.8
Changeset: r73003:e2f7912c2b72
Date: 2014-08-23 09:05 -0700
http://bitbucket.org/pypy/pypy/changeset/e2f7912c2b72/

Log:    oefmt

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
@@ -920,18 +920,14 @@
     def method_w(self, space, __args__):
         if writer:
             if self.w_writer is None:
-                raise OperationError(
-                    space.w_ValueError,
-                    space.wrap("I/O operation on uninitialized object")
-                )
+                raise oefmt(space.w_ValueError,
+                            "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,
-                    space.wrap("I/O operation on uninitialized object")
-                )
+                raise oefmt(space.w_ValueError,
+                            "I/O operation on uninitialized object")
             w_meth = space.getattr(self.w_reader, space.wrap(method))
             w_result = space.call_args(w_meth, __args__)
         return w_result
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to