]> granicus.if.org Git - python/commitdiff
#6888 fix the alias command with no arguments
authorBenjamin Peterson <benjamin@python.org>
Fri, 11 Sep 2009 21:17:13 +0000 (21:17 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 11 Sep 2009 21:17:13 +0000 (21:17 +0000)
Lib/pdb.py
Misc/NEWS

index e272f2ebb323e1604937645b7632ee484339fc98..627cd29ba7b6da67493965f104fc6aae84ee6997 100755 (executable)
@@ -841,8 +841,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
     def do_alias(self, arg):
         args = arg.split()
         if len(args) == 0:
-            keys = self.aliases.keys()
-            keys.sort()
+            keys = sorted(self.aliases.keys())
             for alias in keys:
                 print("%s = %s" % (alias, self.aliases[alias]), file=self.stdout)
             return
index 54dcbca79efc60665eb7b2786a0ad57a516dc64e..fe856ae83d0a79ccdebbf0d42636f4e4c477bccf 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -70,6 +70,8 @@ C-API
 Library
 -------
 
+- Issue #6888: pdb's alias command was broken when no arguments were given.
+
 - Issue #6857: Default format() alignment should be '>' for Decimal
   instances.