[pypy-svn] r73108 - pypy/branch/cpython-extension/pypy/module/cpyext
xoraxax at codespeak.net
xoraxax at codespeak.net
Mon Mar 29 19:31:00 CEST 2010
Author: xoraxax
Date: Mon Mar 29 19:30:59 2010
New Revision: 73108
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/slotdefs.py
Log:
Add space argument here, let the translation fail.
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/slotdefs.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/slotdefs.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/slotdefs.py Mon Mar 29 19:30:59 2010
@@ -21,7 +21,7 @@
if n == PyTuple_GET_SIZE(space, ob):
return
raise operationerrfmt(space.w_TypeError,
- "expected %d arguments, got %zd", n, PyTuple_GET_SIZE(ob))
+ "expected %d arguments, got %d", n, PyTuple_GET_SIZE(space, ob))
def wrap_unaryfunc(space, w_self, w_args, func):
func_unary = rffi.cast(unaryfunc, func)
More information about the Pypy-commit
mailing list