]> granicus.if.org Git - python/commit
bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)
authors-sanjay <sanjay537@gmail.com>
Sat, 1 Apr 2017 06:09:53 +0000 (23:09 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 1 Apr 2017 06:09:53 +0000 (09:09 +0300)
commit7bd8d3e794782582a4ad1c9749424fff86802c3e
tree8d61336154beda73513828f3451ad62e894ac7fc
parent1f5425ff69ea0531d869b4f9fa28bd3f66ca3de7
bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)

the original logic was just comparing the network address
but this is wrong because if the network address is equal then
we need to compare the ip address for breaking the tie

add more ip_interface comparison tests
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS