| 648 | |
| 649 | |
| 650 | class 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 | |
| 666 | class MIMEVersion(TokenList): |
no outgoing calls
no test coverage detected