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:
to_fix.update(
......@@ -48,7 +48,7 @@ if __name__ == '__main__':
try:
status = testedpkgs[package]
except KeyError:
print("package %s appears not to exist; skipping" % package)
print("package {} appears not to exist; skipping".format(package))
continue
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('https://reproducible.debian.net/%s seems to be fixed' % package)
print('https://reproducible.debian.net/{} seems to be fixed'.format(package))
package_issues.remove(fix)
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