Message266125
| 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:30 | Feng A | set | recipients:
+ Feng A |
| 2016年05月23日 08:06:30 | Feng A | set | messageid: <1463990790.48.0.380768478643.issue27089@psf.upfronthosting.co.za> |
| 2016年05月23日 08:06:30 | Feng A | link | issue27089 messages |
| 2016年05月23日 08:06:29 | Feng A | create |
|