Remember to cast to bool

This commit is contained in:
Erik Johnston 2017-07-20 16:47:35 +01:00
parent 4d793626ff
commit 139fe30f47
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class GroupsSyncResult(collections.namedtuple("GroupsSyncResult", [
__slots__ = [] __slots__ = []
def __nonzero__(self): def __nonzero__(self):
return self.join or self.invite or self.leave return bool(self.join or self.invite or self.leave)
class SyncResult(collections.namedtuple("SyncResult", [ class SyncResult(collections.namedtuple("SyncResult", [