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