]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport 1.33 from trunk:
authorGuido van Rossum <guido@python.org>
Mon, 13 Jan 2003 21:21:00 +0000 (21:21 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 Jan 2003 21:21:00 +0000 (21:21 +0000)
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

index 37121501f8052e31d112a378fe2f459209e66f1a..3f88235c0b6c984780e5a32ff8925e1aa65c9807 100644 (file)
@@ -68,7 +68,6 @@ class Cmd:
     identchars = IDENTCHARS
     ruler = '='
     lastcmd = ''
-    cmdqueue = []
     intro = None
     doc_leader = ""
     doc_header = "Documented commands (type help <topic>):"
@@ -86,6 +85,7 @@ class Cmd:
         automatically.
 
         """
+        self.cmdqueue = []
         if completekey:
             try:
                 import readline