commit | 654451dc54b2fa55f891bff72365d4e710245362 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Tue Oct 14 13:30:57 1997 +0000 |
committer | Fred Drake <fdrake@acm.org> | Tue Oct 14 13:30:57 1997 +0000 |
tree | 9cda39276529bb4d4aa9da58d8e120dac99f3136 | |
parent | 2950b2d881a0db313bc49e3385a015b7716f9ac5 [diff] |
splitpasswd(): The parameter is named "user", not "host".
diff --git a/Lib/urllib.py b/Lib/urllib.py index 8f84420..422cb9e 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py
@@ -706,7 +706,7 @@ import re _passwdprog = re.compile('^([^:]*):(.*)$') - match = _passwdprog.match(host) + match = _passwdprog.match(user) if match: return match.group(1, 2) return user, None