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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=654451dc54b2fa55f891bff72365d4e710245362;p=thirdparty%2FPython%2Fcpython.git splitpasswd(): The parameter is named "user", not "host". --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 8f844207f94c..422cb9ebb644 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