Windson Yang <wiwind...@outlook.com> added the comment:

First, we can add some check at 
https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Lib/http/client.py#L871
 and raise an error if the URL contains userinfo part. Second, we should catch 
some exception in urllib.request.urlopen, if we agree, I can create a PR later.

----------
nosy: +Windson Yang

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

Reply via email to