Use new-style string formatting

This commit is contained in:
The MMGen Project 2018-03-07 09:59:35 +00:00
commit 351f5f9118
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
24 changed files with 319 additions and 360 deletions

View file

@ -22,6 +22,5 @@ start = (1,0)[bool(opt.include_first_line)]
a = make_chksum_6(' '.join(lines[start:]))
if start == 1:
b = lines[0]
m = ("Checksum in file (%s) doesn't match computed value!" % b,'Checksum in file OK')[a==b]
msg(m)
msg(("Checksum in file ({}) doesn't match computed value!".format(b),'Checksum in file OK')[a==b])
Msg(a)