From d4ee167b835b6cae6fa0b9822a2bfd58ba57ba87 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Oct 2007 01:27:53 +0000 Subject: Fix yet another stray 2.x-ism (maybe merged?). --- Lib/distutils/dist.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index 974ee51..631df48 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) -- cgit v0.12