Author: guido.van.rossum
Date: Tue Jan  1 17:30:47 2008
New Revision: 59646

Modified:
   python/branches/py3k/Lib/getpass.py
Log:
Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.


Modified: python/branches/py3k/Lib/getpass.py
==============================================================================
--- python/branches/py3k/Lib/getpass.py (original)
+++ python/branches/py3k/Lib/getpass.py Tue Jan  1 17:30:47 2008
@@ -78,6 +78,7 @@
     prompt = str(prompt)
     if prompt:
         stream.write(prompt)
+        stream.flush()
     line = sys.stdin.readline()
     if not line:
         raise EOFError
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to