MCPcopy Index your code
hub / github.com/python/cpython / parse_keqv_list

Function parse_keqv_list

Lib/urllib/request.py:1401–1409  ·  view source on GitHub ↗

Parse list of key=value strings where keys are not duplicated.

(l)

Source from the content-addressed store, hash-verified

1399 raise URLError('unknown url type: %s' % type)
1400
1401def parse_keqv_list(l):
1402 """Parse list of key=value strings where keys are not duplicated."""
1403 parsed = {}
1404 for elt in l:
1405 k, v = elt.split('=', 1)
1406 if v[0] == '"' and v[-1] == '"':
1407 v = v[1:-1]
1408 parsed[k] = v
1409 return parsed
1410
1411def parse_http_list(s):
1412 """Parse lists as described by RFC 2068 Section 2.

Callers 1

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…