summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-01-25 11:26:06 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-01-25 11:26:06 +0000
commit8265995498e375cefd728b77930ea3e65306c69a (patch)
treef2854a886be0f6df5d9c7b4049462f69d4e217b5
parentDestructure account data tuple before use (diff)
downloadsynapse-8265995498e375cefd728b77930ea3e65306c69a.tar.xz
Use python magic
-rw-r--r--synapse/handlers/room_member.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index bde4798d0c..ee12428fe7 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -288,8 +288,7 @@ class RoomMemberHandler(object):
             )
 
             # Copy each room tag to the new room
-            for tag in room_tags.keys():
-                tag_content = room_tags[tag]
+            for tag, tag_content in room_tags.items():
                 yield self.store.add_tag_to_room(
                     user_id, room_id, tag, tag_content
                 )