Alexei Pastuchov <i...@maximka.de> added the comment:

Thank you for your swift response and your willingness to add port validation 
to _checknetloc.

I think the validation itself should compound both exceptional branches 
implemented in port[3]
* port is an int
* port is in the range

[3] 
https://github.com/python/cpython/blob/e1903e11a3d42512effe336026e0c67f602e5848/Lib/urllib/parse.py#L173-L178

----------

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

Reply via email to