Commit 082b48c5 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 8a40bfbf
...@@ -68,7 +68,6 @@ class Cmd: ...@@ -68,7 +68,6 @@ class Cmd:
identchars = IDENTCHARS identchars = IDENTCHARS
ruler = '=' ruler = '='
lastcmd = '' lastcmd = ''
cmdqueue = []
intro = None intro = None
doc_leader = "" doc_leader = ""
doc_header = "Documented commands (type help <topic>):" doc_header = "Documented commands (type help <topic>):"
...@@ -86,6 +85,7 @@ class Cmd: ...@@ -86,6 +85,7 @@ class Cmd:
automatically. automatically.
""" """
self.cmdqueue = []
if completekey: if completekey:
try: try:
import readline import readline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment