[Python-checkins] r43330 - python/trunk/Lib/urllib.py
georg.brandl
python-checkins at python.org
Sun Mar 26 22:59:39 CEST 2006
Author: georg.brandl
Date: Sun Mar 26 22:59:38 2006
New Revision: 43330
Modified:
python/trunk/Lib/urllib.py
Log:
Bug #1457264: parse http://host?query correctly in urllib
Modified: python/trunk/Lib/urllib.py
==============================================================================
--- python/trunk/Lib/urllib.py (original)
+++ python/trunk/Lib/urllib.py Sun Mar 26 22:59:38 2006
@@ -1031,7 +1031,7 @@
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)
More information about the Python-checkins
mailing list