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

Method __str__

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

Source from the content-addressed store, hash-verified

135 self.display_name, self.addresses)
136
137 def __str__(self):
138 if self.display_name is None and len(self.addresses)==1:
139 return str(self.addresses[0])
140 disp = self.display_name
141 if disp is not None and not parser.SPECIALS.isdisjoint(disp):
142 disp = parser.quote_string(disp)
143 adrstr = ", ".join(str(x) for x in self.addresses)
144 adrstr = ' ' + adrstr if adrstr else adrstr
145 return "{}:{};".format(disp, adrstr)
146
147 def __eq__(self, other):
148 if not isinstance(other, Group):

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
strFunction · 0.85
isdisjointMethod · 0.45
joinMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected