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

Function _splitvalue

Lib/urllib/parse.py:1404–1407  ·  view source on GitHub ↗

splitvalue('attr=value') --> 'attr', 'value'.

(attr)

Source from the content-addressed store, hash-verified

1402
1403
1404def _splitvalue(attr):
1405 """splitvalue('attr=value') --> 'attr', 'value'."""
1406 attr, delim, value = attr.partition('=')
1407 return attr, (value if delim else None)

Callers 2

ftp_openMethod · 0.90
splitvalueFunction · 0.85

Calls 1

partitionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…