[pypy-svn] r65919 - pypy/branch/pyjitpl5/pypy/jit/metainterp

antocuni at codespeak.net antocuni at codespeak.net
Wed Jun 24 17:16:21 CEST 2009


Author: antocuni
Date: Wed Jun 24 17:16:20 2009
New Revision: 65919

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
Log:
(arigo) remove unneeded isinstance


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py	Wed Jun 24 17:16:20 2009
@@ -637,7 +637,7 @@
             return TYPE == self.VTYPEPTR
         else:
             # ootype: any subtype may be used too
-            if isinstance(TYPE, ootype.Instance) and isinstance(self.VTYPE, ootype.Instance):
+            if isinstance(TYPE, ootype.Instance):
                 return ootype.isSubclass(TYPE, self.VTYPE)
             else:
                 return TYPE == self.VTYPE



More information about the Pypy-commit mailing list