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

Method _get_progress_callbacks

awscli/s3transfer/upload.py:220–227  ·  view source on GitHub ↗
(self, transfer_future)

Source from the content-addressed store, hash-verified

218 return fileobj
219
220 def _get_progress_callbacks(self, transfer_future):
221 callbacks = get_callbacks(transfer_future, 'progress')
222 # We only want to be wrapping the callbacks if there are callbacks to
223 # invoke because we do not want to be doing any unnecessary work if
224 # there are no callbacks to invoke.
225 if callbacks:
226 return [AggregatedProgressCallback(callbacks)]
227 return []
228
229 def _get_close_callbacks(self, aggregated_progress_callbacks):
230 return [callback.flush for callback in aggregated_progress_callbacks]

Callers 4

get_put_object_bodyMethod · 0.80
get_put_object_bodyMethod · 0.80

Calls 2

get_callbacksFunction · 0.90

Tested by

no test coverage detected