Add pyupgrade

This commit is contained in:
Anthony Sottile
2017-03-12 18:01:29 -07:00
parent a11d9314b2
commit 9cee71b5df
19 changed files with 33 additions and 29 deletions

View File

@ -16,7 +16,7 @@ def check_json(argv=None):
try:
simplejson.load(open(filename))
except (simplejson.JSONDecodeError, UnicodeDecodeError) as exc:
print('{0}: Failed to json decode ({1})'.format(filename, exc))
print('{}: Failed to json decode ({})'.format(filename, exc))
retval = 1
return retval