diff options
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -19,7 +19,6 @@ import cliapp import csv import json import os -import sys import summainlib @@ -39,7 +38,7 @@ class OutputFormat(object): self.write_object(name, o) def write_object(self, name, o): - raise NotImplemented() + raise NotImplementedError() class Rfc822(OutputFormat): @@ -73,6 +72,7 @@ class CSV(OutputFormat): class GeneratorList(list): def __init__(self, gen): + list.__init__(self) self.gen = gen def __len__(self): @@ -89,6 +89,9 @@ class Json(OutputFormat): json.dump(gen, self.output, sort_keys=True, indent=1) self.output.write('\n') + def write_object(self, name, o): + pass + def dictify(self, name, o): keys = self.keys + self.checksums |