summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-03-26 20:59:38 (GMT)
committerGeorg Brandl <georg@python.org>2006-03-26 20:59:38 (GMT)
commit1c168d8eebd927d95f069848568262ebc0b90cd6 (patch)
treee453dd4243ddcd58d20fa82af3da78b52eb4d807 /Lib/urllib.py
parent04855cc100f2edcb58bac46f7be45e3c770b5d7d (diff)
downloadcpython-1c168d8eebd927d95f069848568262ebc0b90cd6.zip
cpython-1c168d8eebd927d95f069848568262ebc0b90cd6.tar.gz
cpython-1c168d8eebd927d95f069848568262ebc0b90cd6.tar.bz2
Bug #1457264: parse http://host?query correctly in urllib
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 aeca3f1..d1c50f6 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -1031,7 +1031,7 @@ def splithost(url):
global _hostprog
if _hostprog is None:
import re
- _hostprog = re.compile('^//([^/]*)(.*)$')
+ _hostprog = re.compile('^//([^/?]*)(.*)$')
match = _hostprog.match(url)
if match: return match.group(1, 2)