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

Class DomainLiteral

Lib/email/_header_value_parser.py:657–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657class DomainLiteral(TokenList):
658
659 token_type = 'domain-literal'
660 as_ew_allowed = False
661
662 @property
663 def domain(self):
664 return ''.join(super().value.split())
665
666 @property
667 def ip(self):
668 for x in self:
669 if x.token_type == 'ptext':
670 return x.value
671
672
673class MIMEVersion(TokenList):

Callers 1

get_domain_literalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…