summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-11 21:17:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-09-11 21:17:13 (GMT)
commitbe74a378eb1676bdef826034aff96feb74141e23 (patch)
tree81b236b715b7be03cf9b21b37f87dfe9de704b4e /Lib
parent1f316975ac23378c805d5816a15250e3134a1e1e (diff)
downloadcpython-be74a378eb1676bdef826034aff96feb74141e23.zip
cpython-be74a378eb1676bdef826034aff96feb74141e23.tar.gz
cpython-be74a378eb1676bdef826034aff96feb74141e23.tar.bz2
#6888 fix the alias command with no arguments
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pdb.py3
1 files changed, 1 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