]> granicus.if.org Git - python/commit
#14814: Remove redundant code from ipaddress.IPv6Network
authorHynek Schlawack <hs@ox.cx>
Fri, 8 Jun 2012 13:21:21 +0000 (15:21 +0200)
committerHynek Schlawack <hs@ox.cx>
Fri, 8 Jun 2012 13:21:21 +0000 (15:21 +0200)
commited36b2e55be884afb7517905e02da313973998d1
tree637d52faba50d2a06e7b094ca957375f03af05f0
parent571ee57695ac5214341b2a94a873e4737fda1a9a
#14814: Remove redundant code from ipaddress.IPv6Network

The strict checks and netmask computing don't make sense if constructed with
a ALL_ONES mask based on addresses. Also fix a bug due to mis-indentation of
a return statement in the same code block.
Lib/ipaddress.py