diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-04-30 01:20:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 01:20:06 +0100 |
commit | 683149c1f98fec9bc39835083e608057af535b10 (patch) | |
tree | 0816263ed10369755f1aea7090cd39ee4dea56d7 /synapse/federation/federation_client.py | |
parent | Merge branch 'rav/test_36' into develop (diff) | |
parent | Merge branch 'develop' into py3-xrange-1 (diff) | |
download | synapse-683149c1f98fec9bc39835083e608057af535b10.tar.xz |
Merge pull request #3151 from NotAFile/py3-xrange-1
Move more xrange to six
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index 8adc60863e..6163f7c466 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -19,6 +19,8 @@ import itertools import logging import random +from six.moves import range + from twisted.internet import defer from synapse.api.constants import Membership @@ -413,7 +415,7 @@ class FederationClient(FederationBase): batch_size = 20 missing_events = list(missing_events) - for i in xrange(0, len(missing_events), batch_size): + for i in range(0, len(missing_events), batch_size): batch = set(missing_events[i:i + batch_size]) deferreds = [ |