From 883a1cd09ea201c899b6f7d1c8156c22aa7922c6 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 21 Jun 2017 08:46:51 +0200 Subject: [PATCH] tesh: codacy treats --- tools/tesh/tesh.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/tesh/tesh.py b/tools/tesh/tesh.py index 8f1cb4c022..af6ce0907a 100755 --- a/tools/tesh/tesh.py +++ b/tools/tesh/tesh.py @@ -120,7 +120,7 @@ except NameError: # read file line per line (and concat line that ends with "\") class FileReader(Singleton): - def __init__(self, filename): + def __init__(self, filename=None): if filename is None: self.filename = "(stdin)" self.f = sys.stdin @@ -132,9 +132,6 @@ class FileReader(Singleton): self.linenumber = 0 - def linenumber(self): - return self.linenumber - def __repr__(self): return self.filename+":"+str(self.linenumber) -- 2.20.1