From: Guido van Rossum Date: Mon, 15 Oct 2007 01:27:53 +0000 (+0000) Subject: Fix yet another stray 2.x-ism (maybe merged?). X-Git-Tag: v3.0a2~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4ee167b835b6cae6fa0b9822a2bfd58ba57ba87;p=python Fix yet another stray 2.x-ism (maybe merged?). --- diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index 974ee5163b..631df48cd0 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -280,8 +280,7 @@ Common commands: (see '--help-commands' for more) from pprint import pformat if commands is None: # dump all command option dicts - commands = self.command_options.keys() - commands.sort() + commands = sorted(self.command_options.keys()) if header is not None: print(indent + header)