

@classmethod
def get_content(cls, abspath, start=None, end=None):
    'Retrieve the content of the requested resource which is located\n        at the given absolute path.\n\n        This class method may be overridden by subclasses.  Note that its\n        signature is different from other overridable class methods\n        (no ``settings`` argument); this is deliberate to ensure that\n        ``abspath`` is able to stand on its own as a cache key.\n\n        This method should either return a byte string or an iterator\n        of byte strings.  The latter is preferred for large files\n        as it helps reduce memory fragmentation.\n\n        .. versionadded:: 3.1\n        '
    with open(abspath, 'rb') as file:
        if (start is not None):
            file.seek(start)
        if (end is not None):
            remaining = (end - (start or 0))
        else:
            remaining = None
        while True:
            chunk_size = (64 * 1024)
            if ((remaining is not None) and (remaining < chunk_size)):
                chunk_size = remaining
            chunk = file.read(chunk_size)
            if file:
                if (remaining is not None):
                    remaining -= len(chunk)
                (yield chunk)
            else:
                if (remaining is not None):
                    assert (remaining == 0)
                return

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py StaticFileHandler.get_content/VarMisuse@133/365 `chunk`->`file`