[issue2464] urllib2 can't handle http://www.wikispaces.com
Facundo Batista
report at bugs.python.org
Mon Aug 18 02:08:54 CEST 2008
Facundo Batista <facundo at taniquetil.com.ar> added the comment:
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...
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2464>
_______________________________________
More information about the Python-bugs-list
mailing list