[Python-checkins] r80101 - in python/trunk: Lib/test/test_urlparse.py Lib/urlparse.py Misc/NEWS

Senthil Kumaran orsenthil at gmail.com
Sat Apr 17 20:10:51 CEST 2010


On Sat, Apr 17, 2010 at 12:39:24PM -0400, R. David Murray wrote:
> Senthil, what should happen to this URL:
> 
>     'http://[::1/foo/bar]/bad'
> 
> Currently it produces:
> 
>     ParseResult(scheme='http', netloc='[::1', path='/foo/bar]/bad', params='', query='', fragment='')
> 

This is wrong.
Thanks for catching this, David.  I realize that, checking for bad URL
can be done at much higher level, like once the netloc is parsed and
obtained, the check can be enforced. I shall change the code
accordingly and add this test case.

-- 
Senthil

Don't you wish you had more energy... or less ambition?


More information about the Python-checkins mailing list