From 654451dc54b2fa55f891bff72365d4e710245362 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 14 Oct 1997 13:30:57 +0000 Subject: [PATCH] splitpasswd(): The parameter is named "user", not "host". --- Lib/urllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/urllib.py b/Lib/urllib.py index 8f844207f94..422cb9ebb64 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