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

Function _splituser

Lib/urllib/parse.py:1167–1170  ·  view source on GitHub ↗

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

(host)

Source from the content-addressed store, hash-verified

1165
1166
1167def _splituser(host):
1168 """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'."""
1169 user, delim, host = host.rpartition('@')
1170 return (user if delim else None), host
1171
1172
1173def 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