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

@ -22,10 +22,10 @@ def check_ast(argv=None):
try:
ast.parse(open(filename, 'rb').read(), filename=filename)
except SyntaxError:
print('{0}: failed parsing with {1}:'.format(
print('{}: failed parsing with {}:'.format(
filename, interpreter,
))
print('\n{0}'.format(
print('\n{}'.format(
' ' + traceback.format_exc().replace('\n', '\n ')
))
retval = 1