Another map that doesn't get executed in python3.
This commit is contained in:
parent
b2c5a003d2
commit
0b5ceb8526
1 changed files with 2 additions and 3 deletions
|
@ -18,7 +18,6 @@ from __future__ import unicode_literals
|
||||||
from builtins import str
|
from builtins import str
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from functools import partial
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from matrix.globals import W, OPTIONS
|
from matrix.globals import W, OPTIONS
|
||||||
|
@ -514,8 +513,8 @@ class RoomPowerLevels(RoomEvent):
|
||||||
add_user_to_nicklist(buff, user_id, user)
|
add_user_to_nicklist(buff, user_id, user)
|
||||||
|
|
||||||
def execute(self, server, room, buff, tags):
|
def execute(self, server, room, buff, tags):
|
||||||
level_func = partial(self._set_power_level, room, buff)
|
for level in self.power_levels:
|
||||||
map(level_func, self.power_levels)
|
self._set_power_level(room, buff, level)
|
||||||
|
|
||||||
|
|
||||||
class RoomTopicEvent(RoomEvent):
|
class RoomTopicEvent(RoomEvent):
|
||||||
|
|
Loading…
Add table
Reference in a new issue