From: kjwon15 Date: Fri, 10 Oct 2014 15:24:49 +0000 (+0900) Subject: Add __ne__ method for tweepy.models.Status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=069775e49ed743fe1ac957c8bbe29fdc11c5ff3d;p=tweepy.git Add __ne__ method for tweepy.models.Status --- 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):