Author: Richard Plangger <[email protected]>
Branch: py3.5-memoryview
Changeset: r86217:3045edf9288b
Date: 2016-08-16 12:05 +0200
http://bitbucket.org/pypy/pypy/changeset/3045edf9288b/

Log:    missing argument to operation error

diff --git a/pypy/objspace/std/bytearrayobject.py 
b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -507,7 +507,7 @@
     hexstring = StringBuilder(length*2)
 
     if length > PY_SIZE_T_MAX/2:
-        raise OperationError(space.w_MemoryError)
+        raise OperationError(space.w_MemoryError, space.w_None)
 
     for i in range(length):
         if rawaccess:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to