[pypy-svn] r74374 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Wed May 5 11:08:40 CEST 2010
Author: afa
Date: Wed May 5 11:08:38 2010
New Revision: 74374
Modified:
pypy/trunk/pypy/module/cpyext/import_.py
Log:
Use space.call_function instead of space.call
Modified: pypy/trunk/pypy/module/cpyext/import_.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/import_.py (original)
+++ pypy/trunk/pypy/module/cpyext/import_.py Wed May 5 11:08:38 2010
@@ -30,11 +30,11 @@
else:
w_import = space.getattr(w_builtin, space.wrap("__import__"))
- # Call the __import__ function with the proper argument list
- # Always use absolute import here.
- return space.call(w_import, space.newtuple(
- [w_name, w_globals, w_globals,
- space.newlist([space.wrap("__doc__")])]))
+ # Call the __import__ function with the proper argument list
+ # Always use absolute import here.
+ return space.call_function(w_import,
+ w_name, w_globals, w_globals,
+ space.newlist([space.wrap("__doc__")]))
@cpython_api([CONST_STRING], PyObject)
def PyImport_ImportModule(space, name):
More information about the Pypy-commit
mailing list