[Python-3000-checkins] r59646 - python/branches/py3k/Lib/getpass.py
guido.van.rossum
python-3000-checkins at python.org
Tue Jan 1 17:30:47 CET 2008
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
More information about the Python-3000-checkins
mailing list