update setup.py

Changed '%x' to new format style
This commit is contained in:
Rromotpd 2019-01-31 14:28:01 +01:00 committed by GitHub
parent b0e7526a0d
commit ede9b90eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ def main(args=sys.argv):
print('\nWhere command is one of:')
print()
for x in sorted(commands.__all__):
print('%-20s -' % x, end=' ')
print('{:20} -'.format(x), end=' ')
c = getattr(commands, x)
desc = getattr(c, 'short_description', c.description)
print(desc)
@ -85,7 +85,7 @@ def main(args=sys.argv):
parser = option_parser()
command.add_all_options(parser)
parser.set_usage(
'Usage: python setup.py %s [options]\n\n' % args[1] + command.description)
'Usage: python setup.py {} [options]\n\n'.format(args[1]) + command.description)
opts, args = parser.parse_args(args)