Clean up else
compilation in while
This commit is contained in:
parent
ea899471af
commit
c3d4c7aa82
@ -1342,9 +1342,8 @@ class HyASTCompiler(object):
|
||||
|
||||
orel = Result()
|
||||
if else_expr is not None:
|
||||
for else_body in else_expr:
|
||||
orel += self.compile(else_body)
|
||||
orel += orel.expr_as_stmt()
|
||||
orel = self._compile_branch(else_expr)
|
||||
orel += orel.expr_as_stmt()
|
||||
|
||||
body = self._compile_branch(body)
|
||||
body += body.expr_as_stmt()
|
||||
|
Loading…
x
Reference in New Issue
Block a user