diff options
Diffstat (limited to 'Lib/ipaddress.py')
-rw-r--r-- | Lib/ipaddress.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py index d15a1d9..b32a7e1 100644 --- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -808,7 +808,7 @@ class _BaseNetwork(_IPAddressBase): other.broadcast_address <= self.broadcast_address): raise ValueError('%s not contained in %s' % (other, self)) if other == self: - raise StopIteration + return # Make sure we're comparing the network of other. other = other.__class__('%s/%s' % (other.network_address, |