MCPcopy
hub / github.com/django/django / _parseparam

Function _parseparam

django/utils/http.py:319–329  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

317
318
319def _parseparam(s):
320 while s[:1] == ";":
321 s = s[1:]
322 end = s.find(";")
323 while end > 0 and (s.count('"', 0, end) - s.count('\\"', 0, end)) % 2:
324 end = s.find(";", end + 1)
325 if end < 0:
326 end = len(s)
327 f = s[:end]
328 yield f.strip()
329 s = s[end:]
330
331
332def parse_header_parameters(line, max_length=MAX_HEADER_LENGTH):

Callers 1

parse_header_parametersFunction · 0.85

Calls 2

findMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected