Internals: Use python pass appropriately. No functional change intended.

This commit is contained in:
Wilson Snyder 2022-03-26 15:57:52 -04:00
parent 38b2845e2a
commit 4eaa6fdd06
2 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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