catalogue/model.py
def _chunk_reader(fobj, chunk_size=1024):
    """Generator that reads a file in chunks of bytes"""
    while True:
        chunk = fobj.read(chunk_size)
        if not chunk:
            return
        yield chunk
Generator that reads a file in chunks of bytes
Generator that reads a file in chunks of bytes
Generator that reads a file in chunks of bytes
def _chunk_reader(fobj, chunk_size=1024):
    while True:
        chunk = fobj.read(chunk_size)
        if not chunk:
            return
        yield chunk
def _chunk_reader ( fobj , chunk_size = 1024 ) : while True : chunk = fobj . read ( chunk_size ) if not chunk : return yield chunk
Generator that reads a file in chunks of bytes
Generator that reads a file in chunks of bytes
"""Generator that reads a file in chunks of bytes"""
fobj
chunk_size