diff options
author | Guido van Rossum <guido@python.org> | 2008-01-01 16:30:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2008-01-01 16:30:47 (GMT) |
commit | cfb83330ce9df04d4fb9163ffb65cd7d6e55ec19 (patch) | |
tree | af16ec24832dc444da5731e062616ebf4a93641b /Lib/getpass.py | |
parent | d9a4d1d5876203c17fa646c8908d15dfda99219a (diff) | |
download | cpython-cfb83330ce9df04d4fb9163ffb65cd7d6e55ec19.zip cpython-cfb83330ce9df04d4fb9163ffb65cd7d6e55ec19.tar.gz cpython-cfb83330ce9df04d4fb9163ffb65cd7d6e55ec19.tar.bz2 |
Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r-- | Lib/getpass.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py index a726189..3331c97 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -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 |