Skip to content

Commit ccd5b27

Browse files
author
shbhmexe
committed
Refactor updateHistoryMap.py to use f-strings and fix formatting
Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
1 parent babc8ab commit ccd5b27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SU2_PY/updateHistoryMap.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def parse_output(files):
4949
outputFields = dict()
5050

5151
for file in files:
52-
print("Parsing " + file)
52+
print(f"Parsing {file}")
5353
f = open(file, "r")
5454
while 1:
5555
s = f.readline().strip(" ")
@@ -60,7 +60,9 @@ def parse_output(files):
6060
if "//" in s[:idx]:
6161
continue
6262
try:
63-
s_args = s[idx:].replace("AddHistoryOutput", "").strip("()").split(",")
63+
s_args = (
64+
s[idx:].replace("AddHistoryOutput", "").strip("()").split(",")
65+
)
6466
if len(s_args) < 2:
6567
continue
6668
curOutputField = dict()

0 commit comments

Comments
 (0)