kopia lustrzana https://github.com/micropython/micropython-lib
cmd: Add (unused) completekey arg for compatibility.
rodzic
7444302ac6
commit
109711d911
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue