Mercurial > p > roundup > code
diff roundup/mailer.py @ 5834:b3905faf58ea
Revert that last attempt to fix. Breaks things worse. Reopened
https://issues.roundup-tracker.org/issue2551049.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 05 Jul 2019 20:59:57 -0400 |
| parents | 3491971eb694 |
| children | aa26a260e81c |
line wrap: on
line diff
--- a/roundup/mailer.py Fri Jul 05 20:14:07 2019 -0400 +++ b/roundup/mailer.py Fri Jul 05 20:59:57 2019 -0400 @@ -35,7 +35,7 @@ if not name: return address try: - encname = b2s(name).encode('ASCII') + encname = b2s(name.encode('ASCII')) except UnicodeEncodeError: # use Header to encode correctly. encname = Header(name, charset=charset).encode()
