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

Function _splitparams

tools/python-3.11.9-amd64/Lib/urllib/parse.py:404–411  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

402 return _coerce_result(result)
403
404def _splitparams(url):
405 if '/' in url:
406 i = url.find(';', url.rfind('/'))
407 if i < 0:
408 return url, ''
409 else:
410 i = url.find(';')
411 return url[:i], url[i+1:]
412
413def _splitnetloc(url, start=0):
414 delim = len(url) # position of end of domain part of url, default is end

Callers 1

urlparseFunction · 0.85

Calls 2

rfindMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected