From 61830c315a9b051a8ab46da487792d0c1e90ec5d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 18 Apr 2015 19:09:49 +0300 Subject: Run pylint in check; fix problems found --- summain | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'summain') diff --git a/summain b/summain index aa8ae79..db12eda 100755 --- a/summain +++ b/summain @@ -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 -- cgit v1.2.1