From: Fred Drake Date: Tue, 14 Oct 1997 13:30:57 +0000 (+0000) Subject: splitpasswd(): The parameter is named "user", not "host". X-Git-Tag: v1.5b1~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=654451dc54b2fa55f891bff72365d4e710245362;p=python splitpasswd(): The parameter is named "user", not "host". --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 8f844207f9..422cb9ebb6 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