Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e1df15c4
Commit
e1df15c4
authored
Apr 12, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AddrlistClass -> AddressList
parent
8a8cdfd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/email/Utils.py
Lib/email/Utils.py
+2
-2
No files found.
Lib/email/Utils.py
View file @
e1df15c4
...
@@ -14,7 +14,7 @@ from cStringIO import StringIO
...
@@ -14,7 +14,7 @@ from cStringIO import StringIO
from
types
import
ListType
from
types
import
ListType
from
rfc822
import
unquote
,
quote
from
rfc822
import
unquote
,
quote
from
rfc822
import
Addr
listClass
as
_AddrlistClass
from
rfc822
import
Addr
essList
as
_AddressList
from
rfc822
import
mktime_tz
from
rfc822
import
mktime_tz
# We need wormarounds for bugs in these methods in older Pythons (see below)
# We need wormarounds for bugs in these methods in older Pythons (see below)
...
@@ -96,7 +96,7 @@ def dump_address_pair(pair):
...
@@ -96,7 +96,7 @@ def dump_address_pair(pair):
def
getaddresses
(
fieldvalues
):
def
getaddresses
(
fieldvalues
):
"""Return a list of (REALNAME, EMAIL) for each fieldvalue."""
"""Return a list of (REALNAME, EMAIL) for each fieldvalue."""
all
=
COMMASPACE
.
join
(
fieldvalues
)
all
=
COMMASPACE
.
join
(
fieldvalues
)
a
=
_Addr
listClass
(
all
)
a
=
_Addr
essList
(
all
)
return
a
.
getaddrlist
()
return
a
.
getaddrlist
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment