This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients facundobatista, gregory.p.smith, orsenthil, weijie90
Date 2008-08-18.00:08:52
SpamBayes Score 0.009878741
Marked as misclassified No
Message-id <1219018134.53.0.928404009905.issue2464@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe we can put it in urlunparse... do you all agree with this test cases?

def test_alwayspath(self):
    u = urlparse.urlparse("http://netloc/path;params?query#fragment")
    self.assertEqual(urlparse.urlunparse(u),
"http://netloc/path;params?query#fragment")

    u = urlparse.urlparse("http://netloc?query#fragment")
    self.assertEqual(urlparse.urlunparse(u),
"http://netloc/?query#fragment")

    u = urlparse.urlparse("http://netloc#fragment")
    self.assertEqual(urlparse.urlunparse(u), "http://netloc/#fragment")



Maybe we could backport this more general fix...
History
Date User Action Args
2008-08-18 00:08:54facundobatistasetrecipients: + facundobatista, gregory.p.smith, orsenthil, weijie90
2008-08-18 00:08:54facundobatistasetmessageid: <1219018134.53.0.928404009905.issue2464@psf.upfronthosting.co.za>
2008-08-18 00:08:53facundobatistalinkissue2464 messages
2008-08-18 00:08:52facundobatistacreate