From ede9b90eea3795512f3f1f5cda52756d7fe5b84d Mon Sep 17 00:00:00 2001 From: Rromotpd <41323080+Rromotpd@users.noreply.github.com> Date: Thu, 31 Jan 2019 14:28:01 +0100 Subject: [PATCH] update setup.py Changed '%x' to new format style --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ad12525766..fb8b0991c4 100755 --- a/setup.py +++ b/setup.py @@ -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)