Upgrade Python syntax with pyupgrade

https://github.com/asottile/pyupgrade
This commit is contained in:
Hugo
2018-11-25 11:36:03 +02:00
committed by Adrien Vergé
parent 5852566ff0
commit f4c56b8216
3 changed files with 5 additions and 5 deletions

View File

@@ -51,8 +51,8 @@ class IndentationStackTestCase(RuleTestCase):
.replace('Mapping', 'Map'))
if token_type in ('StreamStart', 'StreamEnd'):
continue
output += '%9s %s\n' % (token_type,
self.format_stack(context['stack']))
output += '{:>9} {}\n'.format(token_type,
self.format_stack(context['stack']))
return output
def test_simple_mapping(self):