(prompt='Password: ', stream=None, *, echo_char=None)
| 184 | |
| 185 | |
| 186 | def 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 | |
| 197 | def _check_echo_char(echo_char): |
no test coverage detected
searching dependent graphs…