]> granicus.if.org Git - python/commit
bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 21 Mar 2018 01:49:41 +0000 (18:49 -0700)
committerGitHub <noreply@github.com>
Wed, 21 Mar 2018 01:49:41 +0000 (18:49 -0700)
commitae2feb32e7eff328199ce7d527593b3c2aa1fcab
tree52fddb368410a9352bda15d10947e95063aff2a9
parent481cbe8d6202658a7908d97f19f7e9e6061e3df3
bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)

The result of host() was not empty when the network is constructed by a tuple containing an
integer mask and only 1 bit left for addresses.
(cherry picked from commit 10b134a07c898c2fbc5fd3582503680a54ed80a2)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
Doc/library/ipaddress.rst
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Library/2018-03-07-22-28-17.bpo-27683.572Rv4.rst [new file with mode: 0644]