summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
Diffstat (limited to 'summain')
-rwxr-xr-xsummain4
1 files changed, 2 insertions, 2 deletions
diff --git a/summain b/summain
index 579c6d9..21e12f5 100755
--- a/summain
+++ b/summain
@@ -85,8 +85,8 @@ class GeneratorList(list):
class Json(OutputFormat):
def write(self):
- json.dump(GeneratorList(self.dictify(name, o) for name, o in self.objects),
- self.output, sort_keys=True, indent=1)
+ gen = GeneratorList(self.dictify(name, o) for name, o in self.objects)
+ json.dump(gen, self.output, sort_keys=True, indent=1)
self.output.write('\n')
def dictify(self, name, o):