MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _parseparam

Function _parseparam

tools/python-3.11.9-amd64/Lib/cgi.py:226–236  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

224 return {k: fs.getlist(k) for k in fs}
225
226def _parseparam(s):
227 while s[:1] == ';':
228 s = s[1:]
229 end = s.find(';')
230 while end > 0 and (s.count('"', 0, end) - s.count('\\"', 0, end)) % 2:
231 end = s.find(';', end + 1)
232 if end < 0:
233 end = len(s)
234 f = s[:end]
235 yield f.strip()
236 s = s[end:]
237
238def parse_header(line):
239 """Parse a Content-type like header.

Callers 1

parse_headerFunction · 0.70

Calls 3

stripMethod · 0.80
findMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected