splitpasswd(): The parameter is named "user", not "host".

This commit is contained in:
Fred Drake 1997-10-14 13:30:57 +00:00
parent 2950b2d881
commit 654451dc54
1 changed files with 1 additions and 1 deletions

View File

@ -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