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.
This commit is contained in:
Guido van Rossum 2003-01-13 21:18:54 +00:00
parent eef260757c
commit 87fec22476
1 changed files with 1 additions and 1 deletions

View 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