We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca36ea4 commit b20b15aCopy full SHA for b20b15a
1 file changed
Lib/ipaddress.py
@@ -715,9 +715,9 @@ def __lt__(self, other):
715
def __eq__(self, other):
716
if not isinstance(other, _BaseNetwork):
717
return NotImplemented
718
- return (self.version == other.version
719
- and self.network_address == other.network_address
720
- and int(self.netmask._ip) == int(other.netmask))
+ return (self.version == other.version and
+ self.network_address == other.network_address and
+ int(self.netmask._ip) == int(other.netmask))
721
722
def __hash__(self):
723
return hash((int(self.network_address), int(self.netmask)))
0 commit comments