[pypy-svn] r52065 - pypy/branch/jit-refactoring/pypy/jit/rainbow

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Mar 2 19:15:30 CET 2008


Author: cfbolz
Date: Sun Mar  2 19:15:30 2008
New Revision: 52065

Modified:
   pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
Log:
fix tests on 2.4


Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py	Sun Mar  2 19:15:30 2008
@@ -19,7 +19,7 @@
     # we need to turn it into a low level one
     assert not we_are_translated()
     bk = rtyper.annotator.bookkeeper
-    exc_classdef = bk.getuniqueclassdef(type(e))
+    exc_classdef = bk.getuniqueclassdef(e.__class__)
     ll_exc = rtyper.exceptiondata.get_standard_ll_exc_instance(
         rtyper, exc_classdef)
     jitstate.residual_ll_exception(ll_exc)



More information about the Pypy-commit mailing list