From 4e4f830e56c5c3b253da63b6e0c9e21117f4c71f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 13 Jan 2003 21:21:00 +0000 Subject: [PATCH] Backport 1.33 from trunk: Duh. cmdqueue should be an instance variable, not a class variable. This was introduced in 1998 in rev. 1.13, where I imported extensive patches that, I am sad to say, I didn't review as carefully as I should have. --- Lib/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/cmd.py b/Lib/cmd.py index 37121501f805..3f88235c0b6c 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 @@ class Cmd: automatically. """ + self.cmdqueue = [] if completekey: try: import readline -- 2.47.3