(prompt='Password: ', stream=None)
| 118 | |
| 119 | |
| 120 | def fallback_getpass(prompt='Password: ', stream=None): |
| 121 | warnings.warn("Can not control echo on the terminal.", GetPassWarning, |
| 122 | stacklevel=2) |
| 123 | if not stream: |
| 124 | stream = sys.stderr |
| 125 | print("Warning: Password input may be echoed.", file=stream) |
| 126 | return _raw_input(prompt, stream) |
| 127 | |
| 128 | |
| 129 | def _raw_input(prompt="", stream=None, input=None): |
no test coverage detected