Skip to content

Commit 87fec22

Browse files
committed
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.
1 parent eef2607 commit 87fec22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class Cmd:
6868
identchars = IDENTCHARS
6969
ruler = '='
7070
lastcmd = ''
71-
cmdqueue = []
7271
intro = None
7372
doc_leader = ""
7473
doc_header = "Documented commands (type help <topic>):"
@@ -86,6 +85,7 @@ def __init__(self, completekey='tab'):
8685
automatically.
8786
8887
"""
88+
self.cmdqueue = []
8989
if completekey:
9090
try:
9191
import readline

0 commit comments

Comments
 (0)