MCPcopy Create free account
hub / github.com/aws/aws-cli / read

Method read

awscli/s3transfer/upload.py:84–92  ·  view source on GitHub ↗
(self, amount=None)

Source from the content-addressed store, hash-verified

82 self._transfer_coordinator = transfer_coordinator
83
84 def read(self, amount=None):
85 # If there is an exception, then raise the exception.
86 # We raise an error instead of returning no bytes because for
87 # requests where the content length and md5 was sent, it will
88 # cause md5 mismatches and retries as there was no indication that
89 # the stream being read from encountered any issues.
90 if self._transfer_coordinator.exception:
91 raise self._transfer_coordinator.exception
92 return self._fileobj.read(amount)
93
94 def seek(self, where, whence=0):
95 self._fileobj.seek(where, whence)

Callers 5

test_seekMethod · 0.95
get_put_object_bodyMethod · 0.45
_readMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_seekMethod · 0.76