mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.
This commit is contained in:
parent
d9a4d1d587
commit
cfb83330ce
@ -78,6 +78,7 @@ def _raw_input(prompt="", stream=None):
|
||||
prompt = str(prompt)
|
||||
if prompt:
|
||||
stream.write(prompt)
|
||||
stream.flush()
|
||||
line = sys.stdin.readline()
|
||||
if not line:
|
||||
raise EOFError
|
||||
|
Loading…
Reference in New Issue
Block a user