Show More
@@ -51,10 +51,11 b' def netlocunsplit(host, port, user=None,' | |||||
51 | else: |
|
51 | else: | |
52 | hostport = host |
|
52 | hostport = host | |
53 | if user: |
|
53 | if user: | |
|
54 | quote = lambda s: urllib.quote(s, safe='') | |||
54 | if passwd: |
|
55 | if passwd: | |
55 |
userpass = |
|
56 | userpass = quote(user) + ':' + quote(passwd) | |
56 | else: |
|
57 | else: | |
57 |
userpass = |
|
58 | userpass = quote(user) | |
58 | return userpass + '@' + hostport |
|
59 | return userpass + '@' + hostport | |
59 | return hostport |
|
60 | return hostport | |
60 |
|
61 |
General Comments 0
You need to be logged in to leave comments.
Login now