Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.
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 @@
     prompt = str(prompt)
     if prompt:
         stream.write(prompt)
+        stream.flush()
     line = sys.stdin.readline()
     if not line:
         raise EOFError