summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-04-30 01:20:06 +0100
committerGitHub <noreply@github.com>2018-04-30 01:20:06 +0100
commit683149c1f98fec9bc39835083e608057af535b10 (patch)
tree0816263ed10369755f1aea7090cd39ee4dea56d7 /synapse/handlers
parentMerge branch 'rav/test_36' into develop (diff)
parentMerge branch 'develop' into py3-xrange-1 (diff)
downloadsynapse-683149c1f98fec9bc39835083e608057af535b10.tar.xz
Merge pull request #3151 from NotAFile/py3-xrange-1
Move more xrange to six
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/room_list.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index add3f9b009..5757bb7f8a 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -15,6 +15,8 @@
 
 from twisted.internet import defer
 
+from six.moves import range
+
 from ._base import BaseHandler
 
 from synapse.api.constants import (
@@ -200,7 +202,7 @@ class RoomListHandler(BaseHandler):
             step = len(rooms_to_scan) if len(rooms_to_scan) != 0 else 1
 
         chunk = []
-        for i in xrange(0, len(rooms_to_scan), step):
+        for i in range(0, len(rooms_to_scan), step):
             batch = rooms_to_scan[i:i + step]
             logger.info("Processing %i rooms for result", len(batch))
             yield concurrently_execute(