mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
__eq__ must be paired with __ne__ for sanity.
This commit is contained in:
@@ -592,6 +592,10 @@ class Subreddit(Thing, Printable):
|
||||
|
||||
return self._id == other._id
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
|
||||
class FakeSubreddit(Subreddit):
|
||||
over_18 = False
|
||||
_nodb = True
|
||||
|
||||
Reference in New Issue
Block a user