]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36384: Remove check for leading zeroes in IPv4 addresses (GH-12577)
authorJoel Croteau <jcroteau@gmail.com>
Sat, 30 Mar 2019 14:53:48 +0000 (07:53 -0700)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 30 Mar 2019 14:53:48 +0000 (00:53 +1000)
commite653d4d8e820a7a004ad399530af0135b45db27a
tree140ff14e2dccd2daf4a7e7b28a6db743f6347c6d
parentddbb978e1065dde21d1662386b26ded359f4b16e
bpo-36384: Remove check for leading zeroes in IPv4 addresses (GH-12577)

Stop rejecting IPv4 octets with leading zeroes as ambiguously octal.

Plenty of other tools generate decimal IPv4 octets with leading zeroes,
so keeping this check hurts interoperability.

Patch by Joel Croteau.
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Library/2019-03-27-02-09-22.bpo-36385.we2F45.rst [new file with mode: 0644]