Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r63984:ce9ddb64ff3b
Date: 2013-05-11 17:43 +0200
http://bitbucket.org/pypy/pypy/changeset/ce9ddb64ff3b/

Log:    don't set this attr to none

diff --git a/rpython/rtyper/lltypesystem/lltype.py 
b/rpython/rtyper/lltypesystem/lltype.py
--- a/rpython/rtyper/lltypesystem/lltype.py
+++ b/rpython/rtyper/lltypesystem/lltype.py
@@ -1891,8 +1891,8 @@
         attrs.setdefault('_name', '?')
         attrs.setdefault('_callable', None)
         self.__dict__.update(attrs)
-        if '_callable' in attrs:
-            self.__dict__['compilation_info'] = getattr(attrs['_callable'], 
'_compilation_info', None)
+        if '_callable' in attrs and hasattr(attrs['_callable'], 
'_compilation_info'):
+            self.__dict__['compilation_info'] = 
attrs['_callable']._compilation_info
 
     def __repr__(self):
         return '<%s>' % (self,)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to