forked from github/verilator
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]['start'] = start
|
||||||
EvalLoops[start]['end'] = start + elapsed_time
|
EvalLoops[start]['end'] = start + elapsed_time
|
||||||
elif re.match(r'^VLPROFTHREAD', line):
|
elif re.match(r'^VLPROFTHREAD', line):
|
||||||
None # pylint: disable=pointless-statement
|
pass
|
||||||
elif re_arg1.match(line):
|
elif re_arg1.match(line):
|
||||||
match = re_arg1.match(line)
|
match = re_arg1.match(line)
|
||||||
Global['args'][match.group(1)] = match.group(2)
|
Global['args'][match.group(1)] = match.group(2)
|
||||||
@ -105,7 +105,7 @@ def read_data(filename):
|
|||||||
value = re.sub(r'\s+$', '', value)
|
value = re.sub(r'\s+$', '', value)
|
||||||
Global['cpuinfo'][cpu][term] = value
|
Global['cpuinfo'][cpu][term] = value
|
||||||
elif re.match(r'^#', line):
|
elif re.match(r'^#', line):
|
||||||
None # pylint: disable=pointless-statement
|
pass
|
||||||
elif Args.debug:
|
elif Args.debug:
|
||||||
print("-Unk: %s" % line)
|
print("-Unk: %s" % line)
|
||||||
# TODO -- this is parsing text printed by a client.
|
# TODO -- this is parsing text printed by a client.
|
||||||
|
@ -217,9 +217,9 @@ class Cpt:
|
|||||||
argtext = func + "\000" # EOF character
|
argtext = func + "\000" # EOF character
|
||||||
for tok in argtext:
|
for tok in argtext:
|
||||||
if tok == "\000":
|
if tok == "\000":
|
||||||
None # pylint: disable=pointless-statement
|
pass
|
||||||
elif re.match(r'\s+', tok):
|
elif re.match(r'\s+', tok):
|
||||||
None # pylint: disable=pointless-statement
|
pass
|
||||||
elif tok == "{":
|
elif tok == "{":
|
||||||
newref = [forming]
|
newref = [forming]
|
||||||
if not aref:
|
if not aref:
|
||||||
@ -262,7 +262,7 @@ class Cpt:
|
|||||||
elif func == "NEVER":
|
elif func == "NEVER":
|
||||||
out += "nodep->v3fatalSrc(\"Executing transform that was NEVERed\");"
|
out += "nodep->v3fatalSrc(\"Executing transform that was NEVERed\");"
|
||||||
elif func == "DONE":
|
elif func == "DONE":
|
||||||
None # pylint: disable=pointless-statement
|
pass
|
||||||
else:
|
else:
|
||||||
self.error("Unknown execution function format: " + func + "\n")
|
self.error("Unknown execution function format: " + func + "\n")
|
||||||
return out
|
return out
|
||||||
|
Loading…
Reference in New Issue
Block a user