8000 Reintroduce __ne__ · openwd/msgpack-python@5e1fe81 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e1fe81

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)
0