Clean up else compilation in while

This commit is contained in:
Kodi Arfer 2018-05-29 13:26:02 -07:00
parent ea899471af
commit c3d4c7aa82

View File

@ -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()