Commit cad6417f authored by Dylan Trotter's avatar Dylan Trotter

Indentation properly aligned for simple functions.

parent 27b4f456
...@@ -436,7 +436,9 @@ class ExprVisitor(ast.NodeVisitor): ...@@ -436,7 +436,9 @@ class ExprVisitor(ast.NodeVisitor):
assert not func_block.is_generator assert not func_block.is_generator
self.writer.write('var πE *πg.BaseException\n_ = πE') self.writer.write('var πE *πg.BaseException\n_ = πE')
self.writer.write_temp_decls(func_block) self.writer.write_temp_decls(func_block)
self.writer.write(body) # There's no goto labels so align with the rest of the function.
with self.writer.indent_block(-1):
self.writer.write(body)
self.writer.write('return πg.None, nil') self.writer.write('return πg.None, nil')
self.writer.write('}).ToObject()') self.writer.write('}).ToObject()')
return result return result
......
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