[3.9] bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) by miss-islington · Pull Request #25815 · python/cpython

@tiran @miss-islington

…ythonGH-25099)

Reverts commit e653d4d and makes
parsing even more strict. Like socket.inet_pton() any leading zero
is now treated as invalid input.

Signed-off-by: Christian Heimes <christian@python.org>

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 60ce8f0)

Co-authored-by: Christian Heimes <christian@python.org>