STINNER Victor <vstin...@redhat.com> added the comment:

I backported the fix from Python 3.7 to Python 2.7: PR 13315.

Please review it carefully, I had to make multiple changes to adapt the fix to 
Python 2:

* non-ASCII characters are explicitly rejected
* urllib doesn't reject control characters: they are quoted properly, so I 
addapted test_urllib
* urllib2 doesn't quote the URL and so reject control characters, I added tests 
to test_urllib2
* I replaced http.client with httplib
* I replaced urllib.request with urllib or urllib2

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30458>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to