1.1 --- a/translator.py Tue Mar 07 19:09:19 2017 +0100
1.2 +++ b/translator.py Tue Mar 07 19:21:09 2017 +0100
1.3 @@ -1744,9 +1744,6 @@
1.4 out.seek(0)
1.5 self.out.write(out.read())
1.6
1.7 - self.indent -= 1
1.8 - print >>self.out, "}"
1.9 -
1.10 def start_module(self):
1.11
1.12 "Write the start of each module's main function."
1.13 @@ -1776,6 +1773,9 @@
1.14 out = self.end_unit()
1.15 self.flush_unit(self.name, out)
1.16
1.17 + self.indent -= 1
1.18 + print >>self.out, "}"
1.19 +
1.20 def start_function(self, name):
1.21
1.22 "Start the function having the given 'name'."
1.23 @@ -1825,6 +1825,9 @@
1.24 self.write_parameters(name)
1.25
1.26 self.flush_unit(name, out)
1.27 +
1.28 + self.indent -= 1
1.29 + print >>self.out, "}"
1.30 print >>self.out
1.31
1.32 def write_temporaries(self, name):