-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-136686 Fix UnicodeEncodeError in email.generator.write when encoding multipart/related emails using utf8 policy #136848
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
base: main
Are you sure you want to change the base?
Conversation
…nd-trip correctly through `email.parser.parsebytes()` and `as_bytes()`.
Hi, requesting a review from @StanFromIreland as on my end it looks like the review hasn't been requested properly. When you get a chance, could you take a look? Thanks. |
Hello Emmet, |
Sorry about that, I saw you had reviewed another pr that made changes in Lib/email, thanks for clarifying that for me. |
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Hi (bug reporter here) |
Thanks for checking in on the pull request I made. The error doesn't trigger anymore with the changes I made, and there are no differences between the emails in semantic similarity, and since a bytes round trip doesn't necessarily guarantee exact equality/lossless conversion I felt keeping this fix would be reasonable. Your test checks in for exact equality, which is why I didn't go with that originally, if you believe otherwise or have any other feedback I would be happy to make changes. |
Uh oh!
There was an error while loading. Please reload this page.