[issue32323] urllib.parse.urlsplit() must not lowercase() IPv6 scope value

Марк Коренберг report at bugs.python.org
Thu Dec 14 10:30:39 EST 2017


New submission from Марк Коренберг <socketpair at gmail.com>:

qwe = urlsplit('http://[FE80::822a:a8ff:fe49:470c%Тест]:1234/keys')
qwe.hostname will be 'fe80::822a:a8ff:fe49:470c%тест'

Which is wrong.

correct value is

'fe80::822a:a8ff:fe49:470c%Тест'

so, IP-address is lowercased and zone id does not.

----------
components: Library (Lib)
messages: 308306
nosy: socketpair
priority: normal
severity: normal
status: open
title: urllib.parse.urlsplit() must not lowercase() IPv6 scope value
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32323>
_______________________________________


More information about the Python-bugs-list mailing list