Convert .format() to f-strings with flynt

This commit is contained in:
Philip Sargent
2022-11-23 10:51:49 +00:00
parent aca92cb1af
commit aaf6a6c7cf
4 changed files with 19 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ for r in lines[1:]:
if mug:
if not (os.path.isfile(mug)):
print("ERROR: --------------- mug file does not exist: ", mug, file=sys.stderr)
if mug: output += '<a href=%s><img alt=":-)" src="i/mug.png" /></a>' % mug
if mug: output += f'<a href={mug}><img alt=":-)" src="i/mug.png" /></a>'
output += '</td>'
for y in range(len(years)):
if(years[y]):