Add __ne__ method for tweepy.models.Status
authorkjwon15 <kjwonmail@gmail.com>
Fri, 10 Oct 2014 15:24:49 +0000 (00:24 +0900)
committerkjwon15 <kjwonmail@gmail.com>
Fri, 10 Oct 2014 15:24:49 +0000 (00:24 +0900)
tweepy/models.py

index 0ce419e2ebee355d9a55f67d46d22158a644c2df..d33a1ab177d4918a4edf8fa9310e5854b6e535c0 100644 (file)
@@ -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):