MCPcopy Index your code
hub / github.com/RustPython/RustPython / __str__

Method __str__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isdisjointMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected