(s: str)
| 933 | |
| 934 | |
| 935 | def _parseparam(s: str) -> Generator[str, None, None]: |
| 936 | while s[:1] == ";": |
| 937 | s = s[1:] |
| 938 | end = s.find(";") |
| 939 | while end > 0 and (s.count('"', 0, end) - s.count('\\"', 0, end)) % 2: |
| 940 | end = s.find(";", end + 1) |
| 941 | if end < 0: |
| 942 | end = len(s) |
| 943 | f = s[:end] |
| 944 | yield f.strip() |
| 945 | s = s[end:] |
| 946 | |
| 947 | |
| 948 | def _parse_header(line: str) -> Tuple[str, Dict[str, str]]: |
no test coverage detected