[issue34360] urllib.parse doesn't fail with multiple unmatching square brackets

2018-08-09 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34360] urllib.parse doesn't fail with multiple unmatching square brackets

2018-08-08 Thread Florian Bruhin


New submission from Florian Bruhin :

Since bpo-29651, the urllib.parse docs say:

> Unmatched square brackets in the netloc attribute will raise a ValueError.

However, when there are at least one [ and ], but they don't match, there's 
somewhat inconsistent behavior:

>>> urllib.parse.urlparse('http://[::1]]').hostname
'::1'
>>> urllib.parse.urlparse('http://[[::1]').hostname
'[::1'

--
components: Library (Lib)
messages: 323292
nosy: Howie Benefiel, The Compiler, orsenthil
priority: normal
severity: normal
status: open
title: urllib.parse doesn't fail with multiple unmatching square brackets
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com