diff options
author | Fred Drake <fdrake@acm.org> | 1997-10-14 13:30:57 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1997-10-14 13:30:57 (GMT) |
commit | 654451dc54b2fa55f891bff72365d4e710245362 (patch) | |
tree | 9cda39276529bb4d4aa9da58d8e120dac99f3136 /Lib | |
parent | 2950b2d881a0db313bc49e3385a015b7716f9ac5 (diff) | |
download | cpython-654451dc54b2fa55f891bff72365d4e710245362.zip cpython-654451dc54b2fa55f891bff72365d4e710245362.tar.gz cpython-654451dc54b2fa55f891bff72365d4e710245362.tar.bz2 |
splitpasswd(): The parameter is named "user", not "host".
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/urllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 |