Author: Carl Friedrich Bolz <cfb...@gmx.de>
Branch: guard-compatible
Changeset: r87247:a53c8229dad7
Date: 2016-08-19 13:42 +0200
http://bitbucket.org/pypy/pypy/changeset/a53c8229dad7/

Log:    fix translation

diff --git a/rpython/jit/metainterp/compatible.py 
b/rpython/jit/metainterp/compatible.py
--- a/rpython/jit/metainterp/compatible.py
+++ b/rpython/jit/metainterp/compatible.py
@@ -393,7 +393,7 @@
             res = self.debug_mp_str + "\n" + res
         return res
 
-class UnsupportedInfoInGuardCompatibleError(Exception):
+class UnsupportedInfoInGuardCompatible(Exception):
     pass
 
 class QuasiimmutGetfieldAndPureCallCondition(PureCallCondition):
@@ -412,7 +412,7 @@
         if self.fielddescr.is_pointer_field():
             fieldinfo = optimizer.getptrinfo(op.getarg(2))
             if fieldinfo is not None:
-                if type(fieldinfo) != info.NonNullPtrInfo:
+                if type(fieldinfo) is not info.NonNullPtrInfo:
                     # XXX PyPy only needs non-null versions. if another
                     # interpreter needs something more specific we need to
                     # generalize this code
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to