summaryrefslogtreecommitdiffstats
path: root/Lib/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r--Lib/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index c4caf5b..f20c1bb 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -304,7 +304,7 @@ class Cmd:
continue
prevname = name
cmd=name[3:]
- if help.has_key(cmd):
+ if cmd in help:
cmds_doc.append(cmd)
del help[cmd]
elif getattr(self, name).__doc__: