cmd: Add (unused) completekey arg for compatibility.

Andrew Leech 2022-06-21 10:10:07 +10:00
rodzic 7444302ac6
commit 109711d911
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -85,13 +85,16 @@ class Cmd:
nohelp = "*** No help on %s"
use_rawinput = 1
def __init__(self, stdin=None, stdout=None):
def __init__(self, completekey='tab', stdin=None, stdout=None):
"""Instantiate a line-oriented interpreter framework.
The optional arguments stdin and stdout
specify alternate input and output file objects; if not specified,
sys.stdin and sys.stdout are used.
The optional argument completekey is not used, but provided for
compatibility with calling libraries.
"""
if stdin is not None:
self.stdin = stdin