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 Feng A
Recipients Feng A
Date 2016-05-23.08:06:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463990790.48.0.380768478643.issue27089@psf.upfronthosting.co.za>
In-reply-to
Content
=====================================================
BUG:

run : urlparse.urlparse('http://google.com]')
then: raise ValueError("Invalid IPv6 URL")

=====================================================
SOURCE:

    if url[:2] == '//':

        netloc, url = _splitnetloc(url, 2)

        if (('[' in netloc and ']' not in netloc) or

                (']' in netloc and '[' not in netloc)):

            raise ValueError("Invalid IPv6 URL")

=====================================================
SOLUTION:

I THINK IT IS BETTER TO JUST REMOVE THE LAST 3 LINES ABOVE
History
Date User Action Args
2016-05-23 08:06:30Feng Asetrecipients: + Feng A
2016-05-23 08:06:30Feng Asetmessageid: <1463990790.48.0.380768478643.issue27089@psf.upfronthosting.co.za>
2016-05-23 08:06:30Feng Alinkissue27089 messages
2016-05-23 08:06:29Feng Acreate