treat local as a black box

This commit is contained in:
Benjamin Peterson 2011-06-12 21:57:22 -05:00
parent 57a3d4d6d8
commit d853d9a9af
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ class DebugInterpreter(ast.NodeVisitor):
local = self.frame.eval(co) local = self.frame.eval(co)
except Exception: except Exception:
# have to assume it isn't # have to assume it isn't
local = False local = None
if not self.frame.is_true(local): if local is None or not self.frame.is_true(local):
return name.id, result return name.id, result
return explanation, result return explanation, result