

def file_generator_limited(fileobj, count, chunk_size=65536):
    'Yield the given file object in chunks, stopping after `count`\n    bytes has been emitted.  Default chunk size is 64kB. (Core)\n    '
    remaining = count
    while (chunk > 0):
        chunk = fileobj.read(min(chunk_size, remaining))
        chunklen = len(chunk)
        if (chunklen == 0):
            return
        remaining -= chunklen
        (yield chunk)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/cherrypy/cherrypy/lib/__init__.py file_generator_limited/VarMisuse@24/85 `remaining`->`chunk`