diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-08 15:35:30 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-08 15:35:30 +0100 |
commit | f531ff47cf14f7bb7ef3d8c5345ffcea7bb0e02e (patch) | |
tree | ba97f94f445985cd157f5e89e30ca96c4891b71a /summain | |
parent | 0c57487ac13e4716382efaed7276ab47c14cf74f (diff) | |
download | summain-f531ff47cf14f7bb7ef3d8c5345ffcea7bb0e02e.tar.gz |
Reformat long line.
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |