diff options
author | 2019-01-03 19:23:09 +0100 | |
---|---|---|
committer | 2019-01-03 19:23:09 +0100 | |
commit | 6c509e8f603931e3dd521306ff7623fd76ccebbf (patch) | |
tree | c41f7e728b3e6e502a3ae8ee76688fddd50474c2 | |
parent | Sync updated users since last boot. (diff) |
Remove useless `chunk_by` function.
-rw-r--r-- | bot/cogs/sync/syncers.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bot/cogs/sync/syncers.py b/bot/cogs/sync/syncers.py index 9fff72320..57df2c519 100644 --- a/bot/cogs/sync/syncers.py +++ b/bot/cogs/sync/syncers.py @@ -82,13 +82,6 @@ def get_users_for_update( return users_to_update -# Taken from `https://docs.python.org/3.7/library/itertools.html#itertools-recipes`. -def chunk_by(iterable, n, fillvalue=None): - "Collect data into fixed-length chunks or blocks" - args = [iter(iterable)] * n - return itertools.zip_longest(*args, fillvalue=fillvalue) - - async def sync_users(bot: Bot, guild: Guild): """ Synchronize users found on the given |