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

Class DomainLiteral

Lib/email/_header_value_parser.py:650–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648
649
650class DomainLiteral(TokenList):
651
652 token_type = 'domain-literal'
653 as_ew_allowed = False
654
655 @property
656 def domain(self):
657 return ''.join(super().value.split())
658
659 @property
660 def ip(self):
661 for x in self:
662 if x.token_type == 'ptext':
663 return x.value
664
665
666class MIMEVersion(TokenList):

Callers 1

get_domain_literalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected