MCPcopy Index your code
hub / github.com/python/cpython / getaddrlist

Method getaddrlist

Lib/email/_parseaddr.py:260–272  ·  view source on GitHub ↗

Parse all addresses. Returns a list containing all of the addresses.

(self)

Source from the content-addressed store, hash-verified

258 return EMPTYSTRING.join(wslist)
259
260 def getaddrlist(self):
261 """Parse all addresses.
262
263 Returns a list containing all of the addresses.
264 """
265 result = []
266 while self.pos < len(self.field):
267 ad = self.getaddress()
268 if ad:
269 result += ad
270 else:
271 result.append(('', ''))
272 return result
273
274 def getaddress(self):
275 """Parse the next address."""

Callers 1

__init__Method · 0.80

Calls 2

getaddressMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected