misc: Run pre-commit run on all files in repo
The following command was run: ``` pre-commit run --all-files ``` This ensures all the files in the repository are formatted to pass our checks. Change-Id: Ia2fe3529a50ad925d1076a612d60a4280adc40de Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/62572 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
committed by
Bobby Bruce
parent
64add0e04d
commit
2bc5a8b71a
@@ -208,9 +208,13 @@ class Branch(BlobVisualData):
|
||||
m = re.match("^(\w+);(\d+)\.(\d+);([0-9a-fA-Fx]+);(.*)$", string)
|
||||
|
||||
if m is not None:
|
||||
self.reason, newStreamSeqNum, newPredictionSeqNum, newPC, id = (
|
||||
m.groups()
|
||||
)
|
||||
(
|
||||
self.reason,
|
||||
newStreamSeqNum,
|
||||
newPredictionSeqNum,
|
||||
newPC,
|
||||
id,
|
||||
) = m.groups()
|
||||
|
||||
self.newStreamSeqNum = int(newStreamSeqNum)
|
||||
self.newPredictionSeqNum = int(newPredictionSeqNum)
|
||||
@@ -1151,7 +1155,7 @@ class BlobModel(object):
|
||||
new_line = f.readline()
|
||||
|
||||
if new_line is not None and not line_is_comment(new_line):
|
||||
line_wo_backslash, = extend_match.groups()
|
||||
(line_wo_backslash,) = extend_match.groups()
|
||||
ret = line_wo_backslash + new_line
|
||||
extend_match = re.match("^(.*)\\\\$", ret)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user