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

Function _splituser

Lib/urllib/parse.py:1287–1290  ·  view source on GitHub ↗

splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.

(host)

Source from the content-addressed store, hash-verified

1285
1286
1287def _splituser(host):
1288 """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'."""
1289 user, delim, host = host.rpartition('@')
1290 return (user if delim else None), host
1291
1292
1293def splitpasswd(user):

Callers 3

_parse_proxyFunction · 0.90
ftp_openMethod · 0.90
splituserFunction · 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…