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

Function _splittag

Lib/urllib/parse.py:1375–1380  ·  view source on GitHub ↗

splittag('/path#tag') --> '/path', 'tag'.

(url)

Source from the content-addressed store, hash-verified

1373
1374
1375def _splittag(url):
1376 """splittag('/path#tag') --> '/path', 'tag'."""
1377 path, delim, tag = url.rpartition('#')
1378 if delim:
1379 return path, tag
1380 return url, None
1381
1382
1383def splitattr(url):

Callers 2

full_urlMethod · 0.90
splittagFunction · 0.85

Calls 1

rpartitionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…