Commit be74a378 authored by Benjamin Peterson's avatar Benjamin Peterson

#6888 fix the alias command with no arguments

parent 1f316975
...@@ -841,8 +841,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): ...@@ -841,8 +841,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def do_alias(self, arg): def do_alias(self, arg):
args = arg.split() args = arg.split()
if len(args) == 0: if len(args) == 0:
keys = self.aliases.keys() keys = sorted(self.aliases.keys())
keys.sort()
for alias in keys: for alias in keys:
print("%s = %s" % (alias, self.aliases[alias]), file=self.stdout) print("%s = %s" % (alias, self.aliases[alias]), file=self.stdout)
return return
......
...@@ -70,6 +70,8 @@ C-API ...@@ -70,6 +70,8 @@ C-API
Library Library
------- -------
- Issue #6888: pdb's alias command was broken when no arguments were given.
- Issue #6857: Default format() alignment should be '>' for Decimal - Issue #6857: Default format() alignment should be '>' for Decimal
instances. instances.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment