Skip to content

Commit 3eeda0a

Browse files
committed
cmd: Add (unused) completekey arg for compatibility.
1 parent 244edbc commit 3eeda0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python-stdlib/cmd/cmd.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,16 @@ class Cmd:
8686
nohelp = "*** No help on %s"
8787
use_rawinput = 1
8888

89-
def __init__(self, stdin=None, stdout=None):
89+
def __init__(self, completekey='tab', stdin=None, stdout=None):
9090
"""Instantiate a line-oriented interpreter framework.
9191
9292
The optional arguments stdin and stdout
9393
specify alternate input and output file objects; if not specified,
9494
sys.stdin and sys.stdout are used.
9595
96+
The optional argument completekey is not used, but provided for
97+
compatibility with calling libraries.
98+
9699
"""
97100
if stdin is not None:
98101
self.stdin = stdin

0 commit comments

Comments
 (0)