From 069775e49ed743fe1ac957c8bbe29fdc11c5ff3d Mon Sep 17 00:00:00 2001 From: kjwon15 Date: Sat, 11 Oct 2014 00:24:49 +0900 Subject: [PATCH] Add __ne__ method for tweepy.models.Status --- tweepy/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tweepy/models.py b/tweepy/models.py index 0ce419e..d33a1ab 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -118,6 +118,14 @@ class Status(Model): return NotImplemented + def __ne__(self, other): + result = self == other + + if result is NotImplemented: + return result + + return not result + class User(Model): -- 2.25.1