MCPcopy Index your code
hub / github.com/RustPython/RustPython / fallback_getpass

Function fallback_getpass

Lib/getpass.py:135–143  ·  view source on GitHub ↗
(prompt='Password: ', stream=None, *, echo_char=None)

Source from the content-addressed store, hash-verified

133
134
135def fallback_getpass(prompt='Password: ', stream=None, *, echo_char=None):
136 _check_echo_char(echo_char)
137 import warnings
138 warnings.warn("Can not control echo on the terminal.", GetPassWarning,
139 stacklevel=2)
140 if not stream:
141 stream = sys.stderr
142 print("Warning: Password input may be echoed.", file=stream)
143 return _raw_input(prompt, stream, echo_char=echo_char)
144
145
146def _check_echo_char(echo_char):

Callers 2

unix_getpassFunction · 0.85
win_getpassFunction · 0.85

Calls 4

_check_echo_charFunction · 0.85
_raw_inputFunction · 0.85
printFunction · 0.50
warnMethod · 0.45

Tested by

no test coverage detected