From be74a378eb1676bdef826034aff96feb74141e23 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 11 Sep 2009 21:17:13 +0000 Subject: #6888 fix the alias command with no arguments --- Lib/pdb.py | 3 +-- Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/pdb.py b/Lib/pdb.py index e272f2e..627cd29 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -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 diff --git a/Misc/NEWS b/Misc/NEWS index 54dcbca..fe856ae 100644 --- 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. -- cgit v0.12