diff options
author | Daniel Wagner-Hall <dawagner@gmail.com> | 2016-02-02 17:18:54 +0000 |
---|---|---|
committer | Daniel Wagner-Hall <dawagner@gmail.com> | 2016-02-02 17:18:54 +0000 |
commit | de11b5b9b5da286d2cb96f8ae5c18f6b55b9b460 (patch) | |
tree | 009a6132dd0c507fb68a449efc247519d2a8aab7 /synapse/storage/_base.py | |
parent | Merge pull request #549 from matrix-org/erikj/sync (diff) | |
parent | Fix flake8 warnings for new flake8 (diff) | |
download | synapse-de11b5b9b5da286d2cb96f8ae5c18f6b55b9b460.tar.xz |
Merge pull request #551 from matrix-org/daniel/flake8
Fix flake8 warnings for new flake8
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 5e77320540..cfb87d9328 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -185,7 +185,7 @@ class SQLBaseStore(object): time_then = self._previous_loop_ts self._previous_loop_ts = time_now - ratio = (curr - prev)/(time_now - time_then) + ratio = (curr - prev) / (time_now - time_then) top_three_counters = self._txn_perf_counters.interval( time_now - time_then, limit=3 @@ -643,7 +643,10 @@ class SQLBaseStore(object): if not iterable: defer.returnValue(results) - chunks = [iterable[i:i+batch_size] for i in xrange(0, len(iterable), batch_size)] + chunks = [ + iterable[i:i + batch_size] + for i in xrange(0, len(iterable), batch_size) + ] for chunk in chunks: rows = yield self.runInteraction( desc, |