MCPcopy Create free account
hub / github.com/EasyIME/PIME / _parseparam

Function _parseparam

python/python3/tornado/httputil.py:935–945  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

933
934
935def _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
948def _parse_header(line: str) -> Tuple[str, Dict[str, str]]:

Callers 1

_parse_headerFunction · 0.85

Calls 2

findMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected