]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.
authorGuido van Rossum <guido@python.org>
Tue, 1 Jan 2008 16:30:47 +0000 (16:30 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 1 Jan 2008 16:30:47 +0000 (16:30 +0000)
Lib/getpass.py

index a726189fe1a07baaf19fbe00d067c2135d64eb46..3331c97d9f64a956613e09454559f08ad16a25ab 100644 (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