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

Method __str__

Lib/email/headerregistry.py:85–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.display_name, self.username, self.domain)
84
85 def __str__(self):
86 disp = self.display_name
87 if not parser.SPECIALS.isdisjoint(disp):
88 disp = parser.quote_string(disp)
89 if disp:
90 addr_spec = '' if self.addr_spec=='<>' else self.addr_spec
91 return "{} <{}>".format(disp, addr_spec)
92 return self.addr_spec
93
94 def __eq__(self, other):
95 if not isinstance(other, Address):

Callers

nothing calls this directly

Calls 2

isdisjointMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected