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

Function _splitpasswd

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

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

(user)

Source from the content-addressed store, hash-verified

1118
1119
1120def _splitpasswd(user):
1121 """splitpasswd('user:passwd') -> 'user', 'passwd'."""
1122 user, delim, passwd = user.partition(':')
1123 return user, (passwd if delim else None)
1124
1125
1126def splitport(host):

Callers 4

_parse_proxyFunction · 0.90
ftp_openMethod · 0.90
open_ftpMethod · 0.90
splitpasswdFunction · 0.85

Calls 1

partitionMethod · 0.80

Tested by

no test coverage detected