[pypy-commit] pypy stdlib-2.7.8: oefmt

pjenvey noreply at buildbot.pypy.org
Sat Aug 23 18:22:37 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
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:


More information about the pypy-commit mailing list