MCPcopy Create free account
hub / github.com/rthalley/dnspython / __eq__

Method __eq__

dns/serial.py:14–19  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

12 return f"dns.serial.Serial({self.value}, {self.bits})"
13
14 def __eq__(self, other):
15 if isinstance(other, int):
16 other = Serial(other, self.bits)
17 elif not isinstance(other, Serial) or other.bits != self.bits:
18 return NotImplemented
19 return self.value == other.value
20
21 def __ne__(self, other):
22 if isinstance(other, int):

Callers

nothing calls this directly

Calls 1

SerialClass · 0.85

Tested by

no test coverage detected