Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfb8333

Browse files
committed
Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.
1 parent d9a4d1d commit cfb8333

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/getpass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def _raw_input(prompt="", stream=None):
7878
prompt = str(prompt)
7979
if prompt:
8080
stream.write(prompt)
81+
stream.flush()
8182
line = sys.stdin.readline()
8283
if not line:
8384
raise EOFError

0 commit comments

Comments
 (0)