[pypy-svn] r37234 - pypy/dist/pypy/annotation

pedronis at codespeak.net pedronis at codespeak.net
Tue Jan 23 22:07:32 CET 2007


Author: pedronis
Date: Tue Jan 23 22:07:30 2007
New Revision: 37234

Modified:
   pypy/dist/pypy/annotation/bookkeeper.py
Log:
what if there's no _attrs_ at all in such case.



Modified: pypy/dist/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/annotation/bookkeeper.py	(original)
+++ pypy/dist/pypy/annotation/bookkeeper.py	Tue Jan 23 22:07:30 2007
@@ -590,7 +590,10 @@
 
         if isinstance(s_result, SomeImpossibleValue):
             for desc in descs:
-                attrs = desc.read_attribute('_attrs_')
+                try:
+                    attrs = desc.read_attribute('_attrs_')
+                except AttributeError:
+                    continue
                 if isinstance(attrs, Constant):
                     attrs = attrs.value
                 if attr in attrs:



More information about the Pypy-commit mailing list