summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-01-13 21:18:54 (GMT)
committerGuido van Rossum <guido@python.org>2003-01-13 21:18:54 (GMT)
commit87fec22476ad0ef5d87398adfc00dd8b159015e3 (patch)
tree1e488f0ed6238a019eb90c6006fa9fbe6f13f028 /Lib
parenteef260757cb23cd83f603b690f8e737d0892e561 (diff)
downloadcpython-87fec22476ad0ef5d87398adfc00dd8b159015e3.zip
cpython-87fec22476ad0ef5d87398adfc00dd8b159015e3.tar.gz
cpython-87fec22476ad0ef5d87398adfc00dd8b159015e3.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index bd4e3cb..f0637ed 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 <topic>):"
@@ -86,6 +85,7 @@ class Cmd:
automatically.
"""
+ self.cmdqueue = []
if completekey:
try:
import readline