Kaydet (Commit) cfb83330 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst d9a4d1d5
...@@ -78,6 +78,7 @@ def _raw_input(prompt="", stream=None): ...@@ -78,6 +78,7 @@ def _raw_input(prompt="", stream=None):
prompt = str(prompt) prompt = str(prompt)
if prompt: if prompt:
stream.write(prompt) stream.write(prompt)
stream.flush()
line = sys.stdin.readline() line = sys.stdin.readline()
if not line: if not line:
raise EOFError raise EOFError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment