[pypy-svn] r51948 - pypy/dist/pypy/translator/jvm

arigo at codespeak.net arigo at codespeak.net
Fri Feb 29 11:55:08 CET 2008


Author: arigo
Date: Fri Feb 29 11:55:06 2008
New Revision: 51948

Modified:
   pypy/dist/pypy/translator/jvm/node.py
Log:
Python 2.4 compatibility.


Modified: pypy/dist/pypy/translator/jvm/node.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/node.py	(original)
+++ pypy/dist/pypy/translator/jvm/node.py	Fri Feb 29 11:55:06 2008
@@ -34,6 +34,7 @@
 from pypy.translator.oosupport.constant import \
      push_constant
 
+import py
 import pypy.translator.jvm.generator as jvmgen
 import pypy.translator.jvm.typesystem as jvmtype
 from pypy.translator.jvm.log import log
@@ -336,7 +337,7 @@
 
         for pyexccls, jexcty in translation_table:
             for llexitcase in llexitcases:
-                assert issubclass(llexitcase, BaseException)
+                assert issubclass(llexitcase, py.builtin.BaseException)
                 if issubclass(llexitcase, pyexccls):
                     # Generate some converter code like:
                     #   try { ... }



More information about the Pypy-commit mailing list