From: Benjamin Peterson Date: Fri, 11 Sep 2009 21:21:12 +0000 (+0000) Subject: Merged revisions 74741 via svnmerge from X-Git-Tag: v3.1.2rc1~547 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14f9f7df74dae1f10bd81ffaf3fab088fa785132;p=python Merged revisions 74741 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74741 | benjamin.peterson | 2009-09-11 16:17:13 -0500 (Fri, 11 Sep 2009) | 1 line #6888 fix the alias command with no arguments ........ --- diff --git a/Lib/pdb.py b/Lib/pdb.py index e272f2ebb3..627cd29ba7 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 85fad1cbad..3e06581c42 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -52,6 +52,8 @@ C-API Library ------- +- Issue #6888: pdb's alias command was broken when no arguments were given. + - Issue #6795: int(Decimal('nan')) now raises ValueError instead of returning NaN or raising InvalidContext. Also, fix infinite recursion in long(Decimal('nan')).