Commit e749f4f4 authored by Vitja Makarov's avatar Vitja Makarov

Don't initialize scoped locals to None

parent 173b578c
...@@ -4493,8 +4493,6 @@ class ScopedExprNode(ExprNode): ...@@ -4493,8 +4493,6 @@ class ScopedExprNode(ExprNode):
generate_inner_evaluation_code(code) generate_inner_evaluation_code(code)
code.putln('} /* exit inner scope */') code.putln('} /* exit inner scope */')
return return
for entry in py_entries:
code.put_init_var_to_py_none(entry)
# must free all local Python references at each exit point # must free all local Python references at each exit point
old_loop_labels = tuple(code.new_loop_labels()) old_loop_labels = tuple(code.new_loop_labels())
......
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