Fix pylint warnings about the usage of f-strings

This commit is contained in:
Kamil Śliwak
2021-09-16 19:38:44 +02:00
parent 3f8023ace9
commit 66a540ea01
5 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ def extract_test_cases(_path):
for l in lines:
if inside:
if l.strip().endswith(')' + delimiter + '";'):
with open('%03d_%s.sol' % (ctr, test_name), mode='wb', encoding='utf8') as f:
with open(f'{ctr:03d}_{test_name}.sol', mode='wb', encoding='utf8') as f:
f.write(test)
ctr += 1
inside = False