From 4eaa6fdd06bc0395898e38db086c1fa9ca768150 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 26 Mar 2022 15:57:52 -0400 Subject: [PATCH] Internals: Use python pass appropriately. No functional change intended. --- bin/verilator_gantt | 4 ++-- src/astgen | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/verilator_gantt b/bin/verilator_gantt index 5958cc518..f31cfa2b5 100755 --- a/bin/verilator_gantt +++ b/bin/verilator_gantt @@ -83,7 +83,7 @@ def read_data(filename): EvalLoops[start]['start'] = start EvalLoops[start]['end'] = start + elapsed_time elif re.match(r'^VLPROFTHREAD', line): - None # pylint: disable=pointless-statement + pass elif re_arg1.match(line): match = re_arg1.match(line) Global['args'][match.group(1)] = match.group(2) @@ -105,7 +105,7 @@ def read_data(filename): value = re.sub(r'\s+$', '', value) Global['cpuinfo'][cpu][term] = value elif re.match(r'^#', line): - None # pylint: disable=pointless-statement + pass elif Args.debug: print("-Unk: %s" % line) # TODO -- this is parsing text printed by a client. diff --git a/src/astgen b/src/astgen index f27c3b7d2..b6071c06b 100755 --- a/src/astgen +++ b/src/astgen @@ -217,9 +217,9 @@ class Cpt: argtext = func + "\000" # EOF character for tok in argtext: if tok == "\000": - None # pylint: disable=pointless-statement + pass elif re.match(r'\s+', tok): - None # pylint: disable=pointless-statement + pass elif tok == "{": newref = [forming] if not aref: @@ -262,7 +262,7 @@ class Cpt: elif func == "NEVER": out += "nodep->v3fatalSrc(\"Executing transform that was NEVERed\");" elif func == "DONE": - None # pylint: disable=pointless-statement + pass else: self.error("Unknown execution function format: " + func + "\n") return out