summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))