summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-18 10:33:11 +0100
committerErik Johnston <erik@matrix.org>2015-08-18 10:33:11 +0100
commit83eb627b5a50ef7cd8803f6c6fae9c5f5271bcb1 (patch)
treeb7bd4e04fd825f1a804e01f79afd56bea0a5fdf2 /synapse
parentDoc strings (diff)
downloadsynapse-83eb627b5a50ef7cd8803f6c6fae9c5f5271bcb1.tar.xz
More helpful variable names
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 1177cbe51b..2b103b48bb 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -268,10 +268,10 @@ class PresenceHandler(BaseHandler):
         )
 
         if check_auth:
-            for u in local_users:
+            for user in local_users:
                 visible = yield self.is_presence_visible(
                     observer_user=auth_user,
-                    observed_user=u
+                    observed_user=user
                 )
 
                 if not visible:
@@ -279,9 +279,9 @@ class PresenceHandler(BaseHandler):
 
         results = {}
         if local_users:
-            for u in local_users:
-                if u in self._user_cachemap:
-                    results[u] = self._user_cachemap[u].get_state()
+            for user in local_users:
+                if user in self._user_cachemap:
+                    results[user] = self._user_cachemap[user].get_state()
 
             local_to_user = {u.localpart: u for u in local_users}
 
@@ -295,9 +295,9 @@ class PresenceHandler(BaseHandler):
                     res["status_msg"] = state["status_msg"]
                 results[local_to_user[local_part]] = res
 
-        for u in remote_users:
+        for user in remote_users:
             # TODO(paul): Have remote server send us permissions set
-            results[u] = self._get_or_offline_usercache(u).get_state()
+            results[user] = self._get_or_offline_usercache(user).get_state()
 
         for state in results.values():
             if "last_active" in state: