mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Internals: Use python pass appropriately. No functional change intended.
This commit is contained in:
parent
38b2845e2a
commit
4eaa6fdd06
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user