[segyio] 132/376: enum.__ne__

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

jokva-guest pushed a commit to branch debian
in repository segyio.

commit c0ce2ca2b2fa0c2489e97395cff3f9c5051ca6df
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date:   Mon Nov 21 15:55:12 2016 +0100

    enum.__ne__
---
 python/segyio/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/python/segyio/__init__.py b/python/segyio/__init__.py
index efb136e..23545d1 100644
--- a/python/segyio/__init__.py
+++ b/python/segyio/__init__.py
@@ -63,6 +63,9 @@ class Enum(object):
         else:
             return self._value == o
 
+    def __ne__(self, other):
+        return not self == other
+
     @classmethod
     def enums(cls):
         result = []

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git



More information about the debian-science-commits mailing list