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

Method _wrap_fileobj

awscli/s3transfer/upload.py:212–218  ·  view source on GitHub ↗
(self, fileobj)

Source from the content-addressed store, hash-verified

210 raise NotImplementedError('must implement yield_upload_part_bodies()')
211
212 def _wrap_fileobj(self, fileobj):
213 fileobj = InterruptReader(fileobj, self._transfer_coordinator)
214 if self._bandwidth_limiter:
215 fileobj = self._bandwidth_limiter.get_bandwith_limited_stream(
216 fileobj, self._transfer_coordinator, enabled=False
217 )
218 return fileobj
219
220 def _get_progress_callbacks(self, transfer_future):
221 callbacks = get_callbacks(transfer_future, 'progress')

Callers 3

get_put_object_bodyMethod · 0.80
_wrap_dataMethod · 0.80

Calls 2

InterruptReaderClass · 0.85

Tested by

no test coverage detected