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

Function _readline_with_echo_char

Lib/getpass.py:242–249  ·  view source on GitHub ↗

Read password with echo character and line editing support.

(stream, input, echo_char, term_ctrl_chars=None,
                             prompt="")

Source from the content-addressed store, hash-verified

240
241
242def _readline_with_echo_char(stream, input, echo_char, term_ctrl_chars=None,
243 prompt=""):
244 """Read password with echo character and line editing support."""
245 if term_ctrl_chars is None:
246 term_ctrl_chars = _POSIX_CTRL_CHARS
247
248 editor = _PasswordLineEditor(stream, echo_char, term_ctrl_chars, prompt)
249 return editor.readline(input)
250
251
252class _PasswordLineEditor:

Callers 1

_raw_inputFunction · 0.85

Calls 2

_PasswordLineEditorClass · 0.85
readlineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…