mirror of https://github.com/python/cpython
splitpasswd(): The parameter is named "user", not "host".
This commit is contained in:
parent
2950b2d881
commit
654451dc54
|
@ -706,7 +706,7 @@ def splitpasswd(user):
|
||||||
import re
|
import re
|
||||||
_passwdprog = re.compile('^([^:]*):(.*)$')
|
_passwdprog = re.compile('^([^:]*):(.*)$')
|
||||||
|
|
||||||
match = _passwdprog.match(host)
|
match = _passwdprog.match(user)
|
||||||
if match: return match.group(1, 2)
|
if match: return match.group(1, 2)
|
||||||
return user, None
|
return user, None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue