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

Method addr_spec

Lib/email/_header_value_parser.py:556–564  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

554
555 @property
556 def addr_spec(self):
557 nameset = set(self.local_part)
558 if len(nameset) > len(nameset-DOT_ATOM_ENDS):
559 lp = quote_string(self.local_part)
560 else:
561 lp = self.local_part
562 if self.domain is not None:
563 return lp + '@' + self.domain
564 return lp
565
566
567class ObsLocalPart(TokenList):

Callers

nothing calls this directly

Calls 2

setFunction · 0.85
quote_stringFunction · 0.85

Tested by

no test coverage detected