projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfed98f
)
Add __ne__ method for tweepy.models.Status
author
kjwon15
<kjwonmail@gmail.com>
Fri, 10 Oct 2014 15:24:49 +0000
(
00:24
+0900)
committer
kjwon15
<kjwonmail@gmail.com>
Fri, 10 Oct 2014 15:24:49 +0000
(
00:24
+0900)
tweepy/models.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/models.py
b/tweepy/models.py
index 0ce419e2ebee355d9a55f67d46d22158a644c2df..d33a1ab177d4918a4edf8fa9310e5854b6e535c0 100644
(file)
--- 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):