mirror of
https://github.com/python/cpython
synced 2026-09-29 11:35:29 +03:00
#6888 fix the alias command with no arguments
This commit is contained in:
parent
1f316975ac
commit
be74a378eb
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue