

def get_body_chunk(self):
    body_chunk = None
    if self.body_path:
        with open(self.body_path, 'rb') as inp:
            body_chunk = inp.read(4096)
    elif self._bytes_body:
        body_chunk = self._bytes_body[:4096]
    return body_chunk

dataset/ETHPy150Open lorien/grab/grab/document.py BodyExtension.get_body_chunk/original