]> 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:22:23 +0000 (18:22 -0700)
committerGitHub <noreply@github.com>
Wed, 21 Mar 2018 01:22:23 +0000 (18:22 -0700)
commit3326c9267f9df15fa77094b8a740be4eaa4b9374
treeb1ac4029bdeea884d3e8ae1c392ccaad19b1a1e9
parenta323eee4c481c88f2b4030bbb224d9bc6bc14c9c
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]