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
@@ -46,7 +46,8 @@ def write_cases(f, tests):
cleaned_filename = f.replace(".","_").replace("-","_").replace(" ","_").lower()
for test in tests:
remainder = re.sub(r'^ {4}', '', test, 0, re.MULTILINE)
with open('test_%s_%s.sol' % (hashlib.sha256(test).hexdigest(), cleaned_filename), 'w', encoding='utf8') as _f:
hash = hashlib.sha256(test).hexdigest()
with open(f'test_{hash}_{cleaned_filename}.sol', 'w', encoding='utf8') as _f:
_f.write(remainder)