diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-19 16:54:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 16:54:45 (GMT) |
commit | 8c43bf1a923754fa6d97772151c6ac23c48759d3 (patch) | |
tree | 2b735fcf283a48f20d543e1b5989d92ccdaa0d1d /Lib/email/utils.py | |
parent | 2d0492091e3fce73230b2e88949210c9f1eb194b (diff) | |
download | cpython-8c43bf1a923754fa6d97772151c6ac23c48759d3.zip cpython-8c43bf1a923754fa6d97772151c6ac23c48759d3.tar.gz cpython-8c43bf1a923754fa6d97772151c6ac23c48759d3.tar.bz2 |
bpo-27513: email.utils.getaddresses() now handles Header objects (GH-13797) (GH-27242)
getaddresses() should be able to handle a Header object if passed
one.
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
(cherry picked from commit 89f4c34797de2f0e5045da2b97c1c8cbbb42fbb2)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Lib/email/utils.py')
-rw-r--r-- | Lib/email/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/utils.py b/Lib/email/utils.py index a8e46a7..cfdfeb3 100644 --- a/Lib/email/utils.py +++ b/Lib/email/utils.py @@ -109,7 +109,7 @@ def formataddr(pair, charset='utf-8'): def getaddresses(fieldvalues): """Return a list of (REALNAME, EMAIL) for each fieldvalue.""" - all = COMMASPACE.join(fieldvalues) + all = COMMASPACE.join(str(v) for v in fieldvalues) a = _AddressList(all) return a.addresslist |