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

Function _splitquery

tools/python-3.11.9-amd64/Lib/urllib/parse.py:1180–1185  ·  view source on GitHub ↗

splitquery('/path?query') --> '/path', 'query'.

(url)

Source from the content-addressed store, hash-verified

1178
1179
1180def _splitquery(url):
1181 """splitquery('/path?query') --> '/path', 'query'."""
1182 path, delim, query = url.rpartition('?')
1183 if delim:
1184 return path, query
1185 return url, None
1186
1187
1188def splittag(url):

Callers 2

retrieveMethod · 0.90
splitqueryFunction · 0.85

Calls 1

rpartitionMethod · 0.80

Tested by

no test coverage detected