]> granicus.if.org Git - python/commitdiff
splitpasswd(): The parameter is named "user", not "host".
authorFred Drake <fdrake@acm.org>
Tue, 14 Oct 1997 13:30:57 +0000 (13:30 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 14 Oct 1997 13:30:57 +0000 (13:30 +0000)
Lib/urllib.py

index 8f844207f94c71b6427c235cf772cf5bb80084ec..422cb9ebb644c73c092d6a3a047607c4d7cea808 100644 (file)
@@ -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