Issue 712317: Bug fix 548176: urlparse('http://foo?blah') errs (original) (raw)

For detailed description of the problem, see http://www.python.org/sf/548176 In summary, URLs such as http://www.example.com?query=spam are misparsed by urlparse.urlparse, which decides that everything after the '//' is the host name. This is contrary to RFC 2396 and probably contrary to the intent of RFC 1738.

The patch corrects the problem, adds a test to expose it, and rearranges some of the tests to better exercise the code in question.