summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1997-10-14 13:30:57 (GMT)
committerFred Drake <fdrake@acm.org>1997-10-14 13:30:57 (GMT)
commit654451dc54b2fa55f891bff72365d4e710245362 (patch)
tree9cda39276529bb4d4aa9da58d8e120dac99f3136 /Lib/urllib.py
parent2950b2d881a0db313bc49e3385a015b7716f9ac5 (diff)
downloadcpython-654451dc54b2fa55f891bff72365d4e710245362.zip
cpython-654451dc54b2fa55f891bff72365d4e710245362.tar.gz
cpython-654451dc54b2fa55f891bff72365d4e710245362.tar.bz2
splitpasswd(): The parameter is named "user", not "host".
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