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

Function _splitpasswd

Lib/urllib/parse.py:1300–1303  ·  view source on GitHub ↗

splitpasswd('user:passwd') -> 'user', 'passwd'.

(user)

Source from the content-addressed store, hash-verified

1298
1299
1300def _splitpasswd(user):
1301 """splitpasswd('user:passwd') -> 'user', 'passwd'."""
1302 user, delim, passwd = user.partition(':')
1303 return user, (passwd if delim else None)
1304
1305
1306def splitport(host):

Callers 3

_parse_proxyFunction · 0.90
ftp_openMethod · 0.90
splitpasswdFunction · 0.85

Calls 1

partitionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…