Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Lib/ipaddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,8 @@ def __hash__(self):
return hash(int(self.network_address) ^ int(self.netmask))

def __contains__(self, other):
if not other:
return False
# always false if one is v4 and the other is v6.
if self._version != other._version:
return False
Expand Down