Use str.format()

This commit is contained in:
Nikita Karamov 2023-01-23 06:47:09 +01:00
parent d1fd32fd5b
commit 1cc86cc3c8
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
5 changed files with 26 additions and 26 deletions

View file

@ -50,7 +50,7 @@ mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
raise RuntimeError("Unable to find version string in {}.".format(VERSIONFILE))
setup(