MCPcopy Index your code
hub / github.com/RustPython/RustPython / _splitparams

Function _splitparams

Lib/urllib/parse.py:407–414  ·  view source on GitHub ↗
(url, allow_none=False)

Source from the content-addressed store, hash-verified

405 return (scheme, netloc, url, params, query, fragment)
406
407def _splitparams(url, allow_none=False):
408 if '/' in url:
409 i = url.find(';', url.rfind('/'))
410 if i < 0:
411 return url, None if allow_none else ''
412 else:
413 i = url.find(';')
414 return url[:i], url[i+1:]
415
416def _splitnetloc(url, start=0):
417 delim = len(url) # position of end of domain part of url, default is end

Callers 1

_urlparseFunction · 0.85

Calls 2

findMethod · 0.45
rfindMethod · 0.45

Tested by

no test coverage detected