mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
#12448: smtplib now flushes stdout while running `python -m smtplib`
in order to display the prompt correctly. Patch by Petri Lehtinen.
This commit is contained in:
parent
67494f2224
commit
6bfecd1271
2 changed files with 4 additions and 0 deletions
|
|
@ -912,6 +912,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
def prompt(prompt):
|
def prompt(prompt):
|
||||||
sys.stdout.write(prompt + ": ")
|
sys.stdout.write(prompt + ": ")
|
||||||
|
sys.stdout.flush()
|
||||||
return sys.stdin.readline().strip()
|
return sys.stdin.readline().strip()
|
||||||
|
|
||||||
fromaddr = prompt("From")
|
fromaddr = prompt("From")
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ Core and Builtins
|
||||||
Library
|
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
|
- Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are
|
||||||
now available on Windows.
|
now available on Windows.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue