Skip to content

Commit 109711d

Browse files
committed
cmd: Add (unused) completekey arg for compatibility.
1 parent 7444302 commit 109711d

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
@@ -85,13 +85,16 @@ class Cmd:
8585
nohelp = "*** No help on %s"
8686
use_rawinput = 1
8787

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

0 commit comments

Comments
 (0)