diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-04-18 19:09:49 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-04-18 19:09:49 +0300 |
commit | 61830c315a9b051a8ab46da487792d0c1e90ec5d (patch) | |
tree | ae11b7a5a2cedebafdc015f9f52fc00084e366ef /summain | |
parent | ad0b4f6096a37611a536243f13ff671fd6969a09 (diff) | |
download | summain-61830c315a9b051a8ab46da487792d0c1e90ec5d.tar.gz |
Run pylint in check; fix problems found
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 |