|
@@ -25,7 +25,9 @@ from synapse.util.caches.descriptors import cached
|
|
|
from unpaddedbase64 import encode_base64
|
|
|
|
|
|
import logging
|
|
|
-from Queue import PriorityQueue, Empty
|
|
|
+from six.moves.queue import PriorityQueue, Empty
|
|
|
+
|
|
|
+from six.moves import range
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
@@ -79,7 +81,7 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore,
|
|
|
front_list = list(front)
|
|
|
chunks = [
|
|
|
front_list[x:x + 100]
|
|
|
- for x in xrange(0, len(front), 100)
|
|
|
+ for x in range(0, len(front), 100)
|
|
|
]
|
|
|
for chunk in chunks:
|
|
|
txn.execute(
|