diff --git a/Lib/cmd.py b/Lib/cmd.py index bd4e3cb06ef..f0637ed500e 100644 --- a/Lib/cmd.py +++ b/Lib/cmd.py @@ -68,7 +68,6 @@ class Cmd: identchars = IDENTCHARS ruler = '=' lastcmd = '' - cmdqueue = [] intro = None doc_leader = "" doc_header = "Documented commands (type help ):" @@ -86,6 +85,7 @@ def __init__(self, completekey='tab'): automatically. """ + self.cmdqueue = [] if completekey: try: import readline