summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-12-12 20:05:25 +0900
committerInada Naoki <songofacandy@gmail.com>2019-12-12 20:05:25 +0900
commit5e1fe818e3839c85a38419859bcec6d38979c620 (patch)
tree635e659028b7f8c4dd698937820ce8932abba2df
parent9e5ec95e0292dce8485575310f6b69a618fdbefe (diff)
downloadmsgpack-python-5e1fe818e3839c85a38419859bcec6d38979c620.tar.gz
Reintroduce __ne__v1.0.0rc1
-rw-r--r--msgpack/ext.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/msgpack/ext.py b/msgpack/ext.py
index cc34fb2..8341c68 100644
--- a/msgpack/ext.py
+++ b/msgpack/ext.py
@@ -80,6 +80,10 @@ class Timestamp(object):
)
return False
+ def __ne__(self, other):
+ """not-equals method (see :func:`__eq__()`)"""
+ return not self.__eq__(other)
+
def __hash__(self):
return hash((self.seconds, self.nanoseconds))