MCPcopy
hub / github.com/aws/aws-cli / _handle_fileobj

Method _handle_fileobj

awscli/botocore/httpchecksum.py:58–62  ·  view source on GitHub ↗
(self, fileobj)

Source from the content-addressed store, hash-verified

56 return base64.b64encode(bs).decode("ascii")
57
58 def _handle_fileobj(self, fileobj):
59 start_position = fileobj.tell()
60 for chunk in iter(lambda: fileobj.read(self._CHUNK_SIZE), b""):
61 self.update(chunk)
62 fileobj.seek(start_position)
63
64 def handle(self, body):
65 if isinstance(body, (bytes, bytearray)):

Callers 1

handleMethod · 0.95

Calls 4

updateMethod · 0.95
tellMethod · 0.45
readMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected