[pypy-svn] r73404 - pypy/branch/cpython-extension/pypy/module/cpyext
benjamin at codespeak.net
benjamin at codespeak.net
Mon Apr 5 03:49:04 CEST 2010
Author: benjamin
Date: Mon Apr 5 03:49:02 2010
New Revision: 73404
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/mapping.py
Log:
simplify with call_method
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/mapping.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/mapping.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/mapping.py Mon Apr 5 03:49:02 2010
@@ -8,5 +8,4 @@
This is equivalent to the Python expression o.keys()."""
# XXX: Cpython implements this in terms of PyObject_CallMethod, we should
# do that eventually.
- w_meth = space.getattr(w_obj, space.wrap("keys"))
- return space.call_function(w_meth)
+ return space.call_method(w_obj, "keys")
More information about the Pypy-commit
mailing list