

def wrap_file(environ, file, buffer_size=8192):
    "Wraps a file.  This uses the WSGI server's file wrapper if available\n    or otherwise the generic :class:`FileWrapper`.\n\n    If the file wrapper from the WSGI server is used it's important to not\n    iterate over it from inside the application but to pass it through\n    unchanged.\n\n    More information about file wrappers are available in :pep:`333`.\n\n    :param file: a :class:`file`-like object with a :meth:`~file.read` method.\n    :param buffer_size: number of bytes for one iteration.\n    "
    return environ.get('wsgi.file_wrapper', FileWrapper)(file, environ)

dataset/ETHPy150Open pecan/pecan/pecan/middleware/static.py wrap_file/VarMisuse@30/238 `buffer_size`->`environ`