MCPcopy Index your code
hub / github.com/python/cpython / fallback_getpass

Function fallback_getpass

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

Source from the content-addressed store, hash-verified

184
185
186def fallback_getpass(prompt='Password: ', stream=None, *, echo_char=None):
187 _check_echo_char(echo_char)
188 import warnings
189 warnings.warn("Can not control echo on the terminal.", GetPassWarning,
190 stacklevel=2)
191 if not stream:
192 stream = sys.stderr
193 print("Warning: Password input may be echoed.", file=stream)
194 return _raw_input(prompt, stream, echo_char=echo_char)
195
196
197def _check_echo_char(echo_char):

Callers 2

unix_getpassFunction · 0.85
win_getpassFunction · 0.85

Calls 3

_check_echo_charFunction · 0.85
_raw_inputFunction · 0.85
warnMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…