Bug #1457264: parse http://host?query correctly in urllib
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 @@
     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)