Commit 3e64927f authored by Stefan Behnel's avatar Stefan Behnel

simplify code

parent 16d02114
...@@ -6349,9 +6349,8 @@ class TryFinallyStatNode(StatNode): ...@@ -6349,9 +6349,8 @@ class TryFinallyStatNode(StatNode):
def analyse_expressions(self, env): def analyse_expressions(self, env):
self.body = self.body.analyse_expressions(env) self.body = self.body.analyse_expressions(env)
self.finally_clause = self.finally_clause.analyse_expressions(env) self.finally_clause = self.finally_clause.analyse_expressions(env)
self.func_return_type = env.return_type if env.return_type and not env.return_type.is_void:
if self.func_return_type and self.func_return_type.is_void: self.func_return_type = env.return_type
self.func_return_type = None
return self return self
nogil_check = Node.gil_error nogil_check = Node.gil_error
......
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