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

Log:    oefmt

diff --git a/pypy/module/_socket/interp_socket.py 
b/pypy/module/_socket/interp_socket.py
--- a/pypy/module/_socket/interp_socket.py
+++ b/pypy/module/_socket/interp_socket.py
@@ -449,8 +449,8 @@
         if nbytes == 0:
             nbytes = lgt
         elif nbytes > lgt:
-            raise OperationError(space.w_ValueError, space.wrap(
-                "nbytes is greater than the length of the buffer"))
+            raise oefmt(space.w_ValueError,
+                        "nbytes is greater than the length of the buffer")
         try:
             readlgt, addr = self.sock.recvfrom_into(rwbuffer, nbytes, flags)
             if addr:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to