mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
splitpasswd(): The parameter is named "user", not "host".
This commit is contained in:
parent
2950b2d881
commit
654451dc54
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ def splitpasswd(user):
|
|||
import re
|
||||
_passwdprog = re.compile('^([^:]*):(.*)$')
|
||||
|
||||
match = _passwdprog.match(host)
|
||||
match = _passwdprog.match(user)
|
||||
if match: return match.group(1, 2)
|
||||
return user, None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue