From: Martin Quinson Date: Wed, 21 Jun 2017 06:46:51 +0000 (+0200) Subject: tesh: codacy treats X-Git-Tag: v3.16~13 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/883a1cd09ea201c899b6f7d1c8156c22aa7922c6 tesh: codacy treats --- 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)