summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py2
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