HPackLiteralString is a string. This class is used as a marker and implements an interface in common with HPackZString
| 656 | |
| 657 | |
| 658 | class HPackLiteralString(HPackStringsInterface): |
| 659 | """ HPackLiteralString is a string. This class is used as a marker and |
| 660 | implements an interface in common with HPackZString |
| 661 | """ |
| 662 | __slots__ = ['_s'] |
| 663 | |
| 664 | def __init__(self, s): |
| 665 | # type: (str) -> None |
| 666 | self._s = s |
| 667 | |
| 668 | def __str__(self): |
| 669 | # type: () -> str |
| 670 | return self._s |
| 671 | |
| 672 | def origin(self): |
| 673 | # type: () -> str |
| 674 | return plain_str(self._s) |
| 675 | |
| 676 | def __len__(self): |
| 677 | # type: () -> int |
| 678 | return len(self._s) |
| 679 | |
| 680 | |
| 681 | class EOS(object): |
no outgoing calls
no test coverage detected
searching dependent graphs…