Commit 76d8bf79 authored by Stefan Behnel's avatar Stefan Behnel

Fix duplicate code generation in assert condition, found for lambda functions...

Fix duplicate code generation in assert condition, found for lambda functions that are used as conditions in "test_grammar.py".
parent c3d6a8d4
......@@ -6495,11 +6495,10 @@ class AssertStatNode(StatNode):
def analyse_declarations(self, env):
assert self.value is None, "Message should have been replaced in PostParse()"
assert self.exception is not None, "Message should have been replaced in PostParse()"
self.condition.analyse_declarations(env)
self.exception.analyse_declarations(env)
def analyse_expressions(self, env):
self.condition = self.condition.analyse_boolean_expression(env)
self.condition = self.condition.analyse_temp_boolean_expression(env)
self.exception = self.exception.analyse_expressions(env)
return self
......
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