[pypy-svn] r75941 - pypy/trunk/pypy/jit/backend/llsupport

arigo at codespeak.net arigo at codespeak.net
Tue Jul 6 19:53:48 CEST 2010


Author: arigo
Date: Tue Jul  6 19:53:46 2010
New Revision: 75941

Modified:
   pypy/trunk/pypy/jit/backend/llsupport/gc.py
Log:
Revert r75937.  That's nonsense :-(


Modified: pypy/trunk/pypy/jit/backend/llsupport/gc.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/llsupport/gc.py	(original)
+++ pypy/trunk/pypy/jit/backend/llsupport/gc.py	Tue Jul  6 19:53:46 2010
@@ -1,4 +1,3 @@
-import sys
 from pypy.rlib import rgc
 from pypy.rlib.objectmodel import we_are_translated
 from pypy.rlib.debug import fatalerror
@@ -619,7 +618,7 @@
     else:
         name = "boehm"
     try:
-        cls = getattr(sys.modules[__name__], 'GcLLDescr_' + name)
+        cls = globals()['GcLLDescr_' + name]
     except KeyError:
         raise NotImplementedError("GC transformer %r not supported by "
                                   "the JIT backend" % (name,))



More information about the Pypy-commit mailing list