summaryrefslogtreecommitdiffstats
path: root/Lib/getpass.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2008-01-01 16:30:47 (GMT)
committerGuido van Rossum <guido@python.org>2008-01-01 16:30:47 (GMT)
commitcfb83330ce9df04d4fb9163ffb65cd7d6e55ec19 (patch)
treeaf16ec24832dc444da5731e062616ebf4a93641b /Lib/getpass.py
parentd9a4d1d5876203c17fa646c8908d15dfda99219a (diff)
downloadcpython-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.py1
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