diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2016-02-02 17:18:50 +0000 |
---|---|---|
committer | review.rocks <nobody@review.rocks> | 2016-02-02 17:18:50 +0000 |
commit | d83d004ccdb7ace1dcb51b8acf7645bc176b10a5 (patch) | |
tree | 009a6132dd0c507fb68a449efc247519d2a8aab7 /synapse/storage/events.py | |
parent | Merge pull request #549 from matrix-org/erikj/sync (diff) | |
download | synapse-d83d004ccdb7ace1dcb51b8acf7645bc176b10a5.tar.xz |
Fix flake8 warnings for new flake8
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index 5e85552029..4d7cdd00d0 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -84,7 +84,7 @@ class EventsStore(SQLBaseStore): event.internal_metadata.stream_ordering = stream chunks = [ - events_and_contexts[x:x+100] + events_and_contexts[x:x + 100] for x in xrange(0, len(events_and_contexts), 100) ] @@ -740,7 +740,7 @@ class EventsStore(SQLBaseStore): rows = [] N = 200 for i in range(1 + len(events) / N): - evs = events[i*N:(i + 1)*N] + evs = events[i * N:(i + 1) * N] if not evs: break @@ -755,7 +755,7 @@ class EventsStore(SQLBaseStore): " LEFT JOIN rejections as rej USING (event_id)" " LEFT JOIN redactions as r ON e.event_id = r.redacts" " WHERE e.event_id IN (%s)" - ) % (",".join(["?"]*len(evs)),) + ) % (",".join(["?"] * len(evs)),) txn.execute(sql, evs) rows.extend(self.cursor_to_dict(txn)) |