From efc24a9eccdfe01708f6334381827acc4b96b3f1 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 18 Apr 2014 14:53:43 +0200 Subject: [PATCH] forgot __ne__ function for python 2 compatibility in Definition --- jedi/api/classes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index fa1b623f..0fe5a14b 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -658,10 +658,14 @@ class Definition(use_metaclass(CachedMetaClass, BaseDefinition)): def __eq__(self, other): return self._start_pos == other._start_pos \ and self.module_path == other.module_path \ - and self.name == other.name + and self.name == other.name \ + and self._evaluator == other._evaluator + + def __ne__(self, other): + return not self.__eq__(other) def __hash__(self): - return hash((self._start_pos, self.module_path, self.name)) + return hash((self._start_pos, self.module_path, self.name, self._evaluator)) class CallSignature(Definition):