Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.

This commit is contained in:
Guido van Rossum 2008-01-01 16:30:47 +00:00
parent d9a4d1d587
commit cfb83330ce
1 changed files with 1 additions and 0 deletions

View File

@ -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