micropython/trans.py | raw changeset files shortlog |
1.1 --- a/micropython/trans.py Sat Jul 14 17:42:42 2012 +0200 1.2 +++ b/micropython/trans.py Sat Jul 14 20:38:19 2012 +0200 1.3 @@ -33,7 +33,7 @@ 1.4 1.5 def _generateGuards(self, node): 1.6 1.7 - if not (self.optimiser.should_optimise_accesses_by_attribute_usage() and hasattr(node, "_attrtypes")): 1.8 + if not (self.optimiser.should_optimise_accesses_by_attribute_usage() and node._attrtypes): 1.9 return 1.10 1.11 # For each name, attempt to restrict the type employed.