[Python-checkins] [python/cpython] c5a6fb: [3.5] bpo-29931 fix __lt__ check in ipaddress.ip_i...
GitHub
noreply at github.com
Thu Jun 15 10:16:57 EDT 2017
Branch: refs/heads/3.5
Home: https://github.com/python/cpython
Commit: c5a6fb654a280c7b17f1d348e2e40d62ca04c5d3
https://github.com/python/cpython/commit/c5a6fb654a280c7b17f1d348e2e40d62ca04c5d3
Author: Serhiy Storchaka <storchaka at gmail.com>
Date: 2017-06-15 (Thu, 15 Jun 2017)
Changed paths:
M Lib/ipaddress.py
M Lib/test/test_ipaddress.py
M Misc/NEWS
Log Message:
-----------
[3.5] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879) (#2218)
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.
(cherry picked from commit 7bd8d3e794782582a4ad1c9749424fff86802c3e)
More information about the Python-checkins
mailing list