src/borg/helpers/misc.py
def chunkit(it, size):
    """
    Chunk an iterator <it> into pieces of <size>.

    >>> list(chunker('ABCDEFG', 3))
    [['A', 'B', 'C'], ['D', 'E', 'F'], ['G']]
    """
    iterable = iter(it)
    return iter(lambda: list(islice(iterable, size)), [])

    Chunk an iterator <it> into pieces of <size>.

    >>> list(chunker('ABCDEFG', 3))
    [['A', 'B', 'C'], ['D', 'E', 'F'], ['G']]
    
Chunk an iterator  into pieces of .
Chunk an iterator into pieces of .
def chunkit(it, size):
    iterable = iter(it)
    return iter(lambda: list(islice(iterable, size)), [])
def chunkit ( it , size ) : iterable = iter ( it ) return iter ( lambda : list ( islice ( iterable , size ) ) , [ ] )
Chunk an iterator <it> into pieces of <size>.
Chunk an iterator <it > into pieces of <size > .
"""
    Chunk an iterator <it> into pieces of <size>.

    >>> list(chunker('ABCDEFG', 3))
    [['A', 'B', 'C'], ['D', 'E', 'F'], ['G']]
    """
it
size