mirror of https://github.com/python/cpython
#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
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue