New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smtplib's __main__ doesn't flush when prompting #56657
Comments
The smptlib module's __main__ doesn't flush stdout when prompting: sys.stdout.write(prompt + ": ")
return sys.stdin.readline().strip() stdout is usually line buffered, and so running python3 smptlib.py doesn't actually prompt the user. The line |
Behaves incorrectly for me, too. Attached a patch with the suggested fix. |
Looks good. |
Raymond: Would you also like to commit the patch? :) |
New changeset 2c50343d0500 by Ezio Melotti in branch '3.2': New changeset e08397a5537a by Ezio Melotti in branch 'default': |
Fixed, thanks for the patch! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: