[pypy-svn] r59210 - pypy/branch/cbuild-refactor/pypy/translator/c

afa at codespeak.net afa at codespeak.net
Sat Oct 18 16:10:24 CEST 2008


Author: afa
Date: Sat Oct 18 16:10:22 2008
New Revision: 59210

Modified:
   pypy/branch/cbuild-refactor/pypy/translator/c/genc.py
Log:
It works much better this way


Modified: pypy/branch/cbuild-refactor/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/cbuild-refactor/pypy/translator/c/genc.py	(original)
+++ pypy/branch/cbuild-refactor/pypy/translator/c/genc.py	Sat Oct 18 16:10:22 2008
@@ -281,7 +281,7 @@
             # The module must be kept alive with the function.
             # This wrapper avoids creating a cycle.
             class Wrapper:
-                def __init__(self):
+                def __init__(self, obj):
                     self.mod = mod
                     self.func = obj
                 def __call__(self, *args, **kwargs):



More information about the Pypy-commit mailing list