cpython: 2c50343d0500 (original) (raw)

Mercurial > cpython

changeset 72970:2c50343d0500 3.2

#12448: smtplib now flushes stdout while running ``python -m smtplib`` in order to display the prompt correctly. Patch by Petri Lehtinen. [#12448]

Ezio Melotti ezio.melotti@gmail.com
date Tue, 18 Oct 2011 13:20:07 +0300
parents b41def1851b6
children e08397a5537a dcf5cc88d5c9
files Lib/smtplib.py Misc/NEWS
diffstat 2 files changed, 4 insertions(+), 0 deletions(-)[+] [-] Lib/smtplib.py 1 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -912,6 +912,7 @@ if name == 'main': def prompt(prompt): sys.stdout.write(prompt + ": ")

fromaddr = prompt("From")

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -47,6 +47,9 @@ Core and Builtins Library ------- +- Issue #12448: smtplib now flushes stdout while running python -m smtplib