mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.
This commit is contained in:
parent
d9a4d1d587
commit
cfb83330ce
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue