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

Function _splituser

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

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

(host)

Source from the content-addressed store, hash-verified

1105
1106
1107def _splituser(host):
1108 """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'."""
1109 user, delim, host = host.rpartition('@')
1110 return (user if delim else None), host
1111
1112
1113def splitpasswd(user):

Callers 5

_parse_proxyFunction · 0.90
ftp_openMethod · 0.90
_open_generic_httpMethod · 0.90
open_ftpMethod · 0.90
splituserFunction · 0.70

Calls 1

rpartitionMethod · 0.80

Tested by

no test coverage detected