projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d0eeec
)
Modify splituser() method to allow an @ in the userinfo field.
author
Raymond Hettinger
<python@rcn.com>
Sun, 18 Aug 2002 20:08:56 +0000
(20:08 +0000)
committer
Raymond Hettinger
<python@rcn.com>
Sun, 18 Aug 2002 20:08:56 +0000
(20:08 +0000)
Jeremy reported that this is not allowed by RFC 2396; however,
other tools support unescaped @'s so we should also.
Apply SF patch 596581 closing bug 581529.
Lib/urllib.py
patch
|
blob
|
history
diff --git
a/Lib/urllib.py
b/Lib/urllib.py
index d367dd8677ed38ae9a2410bef023f3b81d1d31a3..758ab925ca2b6c74811f1fb908f449076a3f11b7 100644
(file)
--- a/
Lib/urllib.py
+++ b/
Lib/urllib.py
@@
-968,7
+968,7
@@
def splituser(host):
global _userprog
if _userprog is None:
import re
- _userprog = re.compile('^(
[^@]
*)@(.*)$')
+ _userprog = re.compile('^(
.
*)@(.*)$')
match = _userprog.match(host)
if match: return map(unquote, match.group(1, 2))