MCPcopy
hub / github.com/django/django / build_address

Function build_address

tests/mail/tests.py:83–86  ·  view source on GitHub ↗
(name, address)

Source from the content-addressed store, hash-verified

81 )
82
83 def build_address(name, address):
84 if "@" in address:
85 return Address(display_name=name, addr_spec=address)
86 return Address(display_name=name, username=address, domain="")
87
88 # This workaround only applies to messages parsed with a modern policy.
89 assert not isinstance(message.policy, policy.Compat32)

Callers 1

Calls 1

AddressClass · 0.50

Tested by

no test coverage detected