Commit 76937501 authored by Chris Lamb's avatar Chris Lamb 💬

Use str.format over %s and %r.

parent 6583a90f
......@@ -34,7 +34,7 @@ if __name__ == '__main__':
# Validate issues
for add in args.add_note:
if add not in issues.keys():
raise ValueError('%r is not a valid issue' % add)
raise ValueError('{!r} is not a valid issue'.format(add))
if args.fix_deterministic:
......@@ -48,7 +48,7 @@ if __name__ == '__main__':
status = testedpkgs[package]
except KeyError:
print("package %s appears not to exist; skipping" % package)
print("package {} appears not to exist; skipping".format(package))
data = notes[package] = {'version': status['version']}
......@@ -61,7 +61,7 @@ if __name__ == '__main__':
package_issues = data.get('issues', [])
if fix in package_issues:
if args.verbose:
print(' seems to be fixed' % package)
print('{} seems to be fixed'.format(package))
for src, dst in (
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment