summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2018-03-21 00:25:13 (GMT)
committerGitHub <noreply@github.com>2018-03-21 00:25:13 (GMT)
commit10b134a07c898c2fbc5fd3582503680a54ed80a2 (patch)
tree32ce163bf6c42d52dcbf62a6479de258c014ea04 /Misc
parent5609b78392d59c7362ef8aa5c4a4529325f01f27 (diff)
downloadcpython-10b134a07c898c2fbc5fd3582503680a54ed80a2.zip
cpython-10b134a07c898c2fbc5fd3582503680a54ed80a2.tar.gz
cpython-10b134a07c898c2fbc5fd3582503680a54ed80a2.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-03-07-22-28-17.bpo-27683.572Rv4.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-03-07-22-28-17.bpo-27683.572Rv4.rst b/Misc/NEWS.d/next/Library/2018-03-07-22-28-17.bpo-27683.572Rv4.rst
new file mode 100644
index 0000000..4e6dfa8
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-03-07-22-28-17.bpo-27683.572Rv4.rst
@@ -0,0 +1,3 @@
+Fix a regression in :mod:`ipaddress` that result of :meth:`hosts`
+is empty when the network is constructed by a tuple containing an
+integer mask and only 1 bit left for addresses.