From 0b5ceb8526a4dd33edc062e978d591feddc03d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Wed, 28 Feb 2018 18:30:10 +0100 Subject: [PATCH] Another map that doesn't get executed in python3. --- matrix/rooms.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/matrix/rooms.py b/matrix/rooms.py index f397cc5..7ccd5a3 100644 --- a/matrix/rooms.py +++ b/matrix/rooms.py @@ -18,7 +18,6 @@ from __future__ import unicode_literals from builtins import str from collections import namedtuple -from functools import partial from datetime import datetime from matrix.globals import W, OPTIONS @@ -514,8 +513,8 @@ class RoomPowerLevels(RoomEvent): add_user_to_nicklist(buff, user_id, user) def execute(self, server, room, buff, tags): - level_func = partial(self._set_power_level, room, buff) - map(level_func, self.power_levels) + for level in self.power_levels: + self._set_power_level(room, buff, level) class RoomTopicEvent(RoomEvent):