mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-02-11 23:11:22 -05:00
45b55e23d3
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>