Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14f9f7d

Browse files
committed
Merged revisions 74741 via svnmerge from
svn+ssh://[email protected]/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 ........
1 parent ef8a8be commit 14f9f7d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/pdb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,7 @@ def do_whatis(self, arg):
841841
def do_alias(self, arg):
842842
args = arg.split()
843843
if len(args) == 0:
844-
keys = self.aliases.keys()
845-
keys.sort()
844+
keys = sorted(self.aliases.keys())
846845
for alias in keys:
847846
print("%s = %s" % (alias, self.aliases[alias]), file=self.stdout)
848847
return

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ C-API
5252
Library
5353
-------
5454

55+
- Issue #6888: pdb's alias command was broken when no arguments were given.
56+
5557
- Issue #6795: int(Decimal('nan')) now raises ValueError instead of
5658
returning NaN or raising InvalidContext. Also, fix infinite recursion
5759
in long(Decimal('nan')).

0 commit comments

Comments
 (0)