[pypy-svn] r75218 - pypy/branch/cpyext-init-cleanup/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Tue Jun 8 23:31:58 CEST 2010


Author: afa
Date: Tue Jun  8 23:31:56 2010
New Revision: 75218

Modified:
   pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py
Log:
remove unused argument


Modified: pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py	(original)
+++ pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py	Tue Jun  8 23:31:56 2010
@@ -707,7 +707,7 @@
     from pypy.translator.c.database import LowLevelDatabase
     db = LowLevelDatabase()
 
-    generate_macros(export_symbols, rename=True, do_deref=True)
+    generate_macros(export_symbols, rename=True)
 
     # Structure declaration code
     members = []
@@ -768,7 +768,7 @@
     setup_init_functions(eci)
     return modulename.new(ext='')
 
-def generate_macros(export_symbols, rename=True, do_deref=True):
+def generate_macros(export_symbols, rename=True):
     "NOT_RPYTHON"
     pypy_macros = []
     renamed_symbols = []
@@ -899,7 +899,7 @@
     from pypy.translator.c.database import LowLevelDatabase
     db = LowLevelDatabase()
 
-    generate_macros(export_symbols, rename=False, do_deref=False)
+    generate_macros(export_symbols, rename=False)
 
     functions = generate_decls_and_callbacks(db, [], api_struct=False)
     code = "#include <Python.h>\n" + "\n".join(functions)



More information about the Pypy-commit mailing list