From f1d13d32d684f9fdc13edd0c89df9e4a4e08b766 Mon Sep 17 00:00:00 2001 From: Andrew Leech Date: Tue, 21 Jun 2022 10:10:07 +1000 Subject: [PATCH] cmd: Add (unused) completekey arg for compatibility. --- python-stdlib/cmd/cmd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-stdlib/cmd/cmd.py b/python-stdlib/cmd/cmd.py index 447ea148..db62b669 100644 --- a/python-stdlib/cmd/cmd.py +++ b/python-stdlib/cmd/cmd.py @@ -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