From 60fb61d64977b516099c309ce6f3af6fbf638bb2 Mon Sep 17 00:00:00 2001 From: Isuru Fernando <isuruf@gmail.com> Date: Mon, 7 Oct 2019 23:47:25 -0500 Subject: [PATCH] Python 2 fixes --- sumpy/kernel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sumpy/kernel.py b/sumpy/kernel.py index 48a75481..6f553519 100644 --- a/sumpy/kernel.py +++ b/sumpy/kernel.py @@ -100,6 +100,10 @@ class KernelArgument(object): return NotImplemented return self.loopy_arg == other.loopy_arg + def __neq__(self, other): + # Needed for python2 + return not self == other + def __hash__(self): return (type(self), self.loopy_arg) -- GitLab