summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorAdrian Tschira <nota@notafile.com>2018-04-29 13:54:38 +0200
committerAdrian Tschira <nota@notafile.com>2018-05-19 17:48:30 +0200
commit45b55e23d34371986ee0da5be784a1f2134fd58a (patch)
treef21e44820bdbca75ca1d976c7f937b980c7c3075 /synapse/state.py
parentMerge pull request #3241 from matrix-org/fix_user_visits_insertion (diff)
downloadsynapse-45b55e23d34371986ee0da5be784a1f2134fd58a.tar.xz
Add batch_iter to utils
There's a frequent idiom I noticed where an iterable is split up into a
number of chunks/batches. Unfortunately that method does not work with
iterators like dict.keys() in python3. This implementation works with
iterators.

Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to 'synapse/state.py')
0 files changed, 0 insertions, 0 deletions