[pypy-svn] r20459 - pypy/branch/somepbc-refactoring/pypy/translator/goal

mwh at codespeak.net mwh at codespeak.net
Wed Nov 30 21:53:59 CET 2005


Author: mwh
Date: Wed Nov 30 21:53:57 2005
New Revision: 20459

Modified:
   pypy/branch/somepbc-refactoring/pypy/translator/goal/query.py
Log:
more care before calling getKind()


Modified: pypy/branch/somepbc-refactoring/pypy/translator/goal/query.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/translator/goal/query.py	(original)
+++ pypy/branch/somepbc-refactoring/pypy/translator/goal/query.py	Wed Nov 30 21:53:57 2005
@@ -543,6 +543,8 @@
     def ismeth(s_val):
         if not isinstance(s_val, annmodel.SomePBC):
             return False
+        if s_val.isNone():
+            return False
         return s_val.getKind() is MethodDesc
     bk = translator.annotator.bookkeeper
     classdefs = bk.classdefs



More information about the Pypy-commit mailing list