Commits

Maciej Fijalkowski  committed ce9ddb6

don't set this attr to none

  • Participants
  • Parent commits e13cd03

Comments (0)

Files changed (1)

File rpython/rtyper/lltypesystem/lltype.py

         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,)