mercurial/cmdutil.py
changeset 32528 9f56d462634c
parent 32434 69c864149d69
child 32538 2dd8d4108249
--- a/mercurial/cmdutil.py	Sun May 28 16:17:43 2017 -0400
+++ b/mercurial/cmdutil.py	Sun May 28 14:02:14 2017 -0400
@@ -449,8 +449,7 @@
         return choice[cmd]
 
     if len(choice) > 1:
-        clist = choice.keys()
-        clist.sort()
+        clist = sorted(choice)
         raise error.AmbiguousCommand(cmd, clist)
 
     if choice: