From cd2788553cda524b56eb6cd6409ebdb0a2938c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Wed, 28 Feb 2018 15:33:48 +0100 Subject: [PATCH] Use a for loop instead of map in the join info event. map returns an iterator on python3, the function won't get executed unless we ask for the result, since the function doesn't return a result we'll use a for loop instead of complicating things unnecessarily. --- matrix/events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/events.py b/matrix/events.py index f284d14..d6eca6f 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -425,7 +425,8 @@ class MatrixSyncEvent(MatrixEvent): server.sync() return - map(self._execute_joined_info, self.joined_room_infos) + for room_info in self.joined_room_infos: + self._execute_joined_info(room_info) server.next_batch = self.next_batch server.sync()