Commit ebc07231 authored by Stefan Behnel's avatar Stefan Behnel

fix for CF based None checking: prevent None checking code for non-pyobjects

parent 08e4dda1
......@@ -1482,7 +1482,7 @@ class NameNode(AtomicExprNode):
return 1
def may_be_none(self):
if self.cf_state:
if self.type.is_pyobject and self.cf_state:
# gard against infinite recursion on self-dependencies
if getattr(self, '_none_checking', False):
# self-dependency - either this node receives a None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment