| 655 | |
| 656 | |
| 657 | class 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 | |
| 673 | class MIMEVersion(TokenList): |
no outgoing calls
no test coverage detected
searching dependent graphs…