Commit 08f9c2ed authored by cclauss's avatar cclauss Committed by Dylan Trotter

Reduce repeated calls to self.out.write() (#120)

parent 8aee62b9
......@@ -51,9 +51,7 @@ class Writer(object):
def write(self, output):
for line in output.split('\n'):
if line:
self.out.write('\t' * self.indent_level)
self.out.write(line)
self.out.write('\n')
self.out.write(''.join(('\t' * self.indent_level, line, '\n')))
def write_block(self, block_, body):
"""Outputs the boilerplate necessary for code blocks like functions.
......
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