diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-18 10:20:07 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-18 10:20:07 (GMT) |
commit | 6bfecd1271b305afcbe3f3f68980f89aa44e1910 (patch) | |
tree | 312101304000d2e3b7942ffa9fb2894002675bdd | |
parent | 67494f22243803422a91634945ae405c5a858939 (diff) | |
download | cpython-6bfecd1271b305afcbe3f3f68980f89aa44e1910.zip cpython-6bfecd1271b305afcbe3f3f68980f89aa44e1910.tar.gz cpython-6bfecd1271b305afcbe3f3f68980f89aa44e1910.tar.bz2 |
#12448: smtplib now flushes stdout while running ``python -m smtplib``
in order to display the prompt correctly. Patch by Petri Lehtinen.
-rw-r--r-- | Lib/smtplib.py | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 13c56e1..fbef96e 100644 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -912,6 +912,7 @@ if __name__ == '__main__': def prompt(prompt): sys.stdout.write(prompt + ": ") + sys.stdout.flush() return sys.stdin.readline().strip() fromaddr = prompt("From") @@ -47,6 +47,9 @@ Core and Builtins Library ------- +- Issue #12448: smtplib now flushes stdout while running ``python -m smtplib`` + in order to display the prompt correctly. + - Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows. |