about summary refs log tree commit diff stats
path: root/miasm2/core/interval.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-04-19 18:02:10 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-04-19 18:02:10 +0200
commit7d4100ea290c0bd60ee225a401786bc856d92615 (patch)
treecbba60755e94e26ac29aa2574d93358c1c73ab5c /miasm2/core/interval.py
parent145c218af968bea37ecc8a89585686e68566a875 (diff)
downloadmiasm-7d4100ea290c0bd60ee225a401786bc856d92615.tar.gz
miasm-7d4100ea290c0bd60ee225a401786bc856d92615.zip
Fix __ne__ calls
Diffstat (limited to 'miasm2/core/interval.py')
-rw-r--r--miasm2/core/interval.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/core/interval.py b/miasm2/core/interval.py
index 019764d4..3fde83ad 100644
--- a/miasm2/core/interval.py
+++ b/miasm2/core/interval.py
@@ -120,6 +120,9 @@ class interval(object):
     def __eq__(self, i):
         return self.intervals == i.intervals
 
+    def __ne__(self, other):
+        return not self.__eq__(other)
+
     def __add__(self, i):
         if isinstance(i, interval):
             i = i.intervals