[pypy-svn] r73081 - pypy/branch/cpython-extension/pypy/module/cpyext
xoraxax at codespeak.net
xoraxax at codespeak.net
Mon Mar 29 17:03:48 CEST 2010
Author: xoraxax
Date: Mon Mar 29 17:03:46 2010
New Revision: 73081
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/modsupport.py
Log:
Add missing wraps.
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/modsupport.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/modsupport.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/modsupport.py Mon Mar 29 17:03:46 2010
@@ -53,7 +53,7 @@
if pto is None:
if flags & METH_CLASS or flags & METH_STATIC:
raise OperationError(space.w_ValueError,
- "module functions cannot set METH_CLASS or METH_STATIC")
+ space.wrap("module functions cannot set METH_CLASS or METH_STATIC"))
w_obj = PyCFunction_NewEx(space, method, w_self)
else:
if methodname in dict_w and not (flags & METH_COEXIST):
@@ -61,7 +61,7 @@
if flags & METH_CLASS:
if flags & METH_STATIC:
raise OperationError(space.w_ValueError,
- "method cannot be both class and static")
+ space.wrap("method cannot be both class and static"))
#w_obj = PyDescr_NewClassMethod(pto, method)
w_obj = space.w_Ellipsis # XXX
elif flags & METH_STATIC:
More information about the Pypy-commit
mailing list