Visitar URL original
Reintroduce __ne__ · didimelli/msgpack-python@5e1fe81 · GitHub
Skip to content

Commit 5e1fe81

Browse files
committed
Reintroduce __ne__
1 parent 9e5ec95 commit 5e1fe81

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎msgpack/ext.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def __eq__(self, other):
8080
)
8181
return False
8282

83+
def __ne__(self, other):
84+
"""not-equals method (see :func:`__eq__()`)"""
85+
return not self.__eq__(other)
86+
8387
def __hash__(self):
8488
return hash((self.seconds, self.nanoseconds))
8589

0 commit comments

Comments
 (0)