File: //opt/cppython/lib/python3.8/site-packages/s3transfer/__pycache__/upload.cpython-38.pyc
U
LD�g
| � @ s� d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z d dl
mZmZm
Z
mZ d dlmZmZmZmZ G dd � d �ZG d
d� d�ZG dd
� d
�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de
�ZG dd� de�ZG dd� de�ZdS )� N)�BytesIO��readable�seekable)�FULL_OBJECT_CHECKSUM_ARGS)�IN_MEMORY_UPLOAD_TAG)�CompleteMultipartUploadTask�CreateMultipartUploadTask�SubmissionTask�Task)�ChunksizeAdjuster�DeferredOpenFile�
get_callbacks�get_filtered_dictc @ s. e Zd Zddd�Zdd� Zdd� Zdd � Zd
S )�AggregatedProgressCallback� c C s || _ || _d| _dS )a� Aggregates progress updates for every provided progress callback
:type callbacks: A list of functions that accepts bytes_transferred
as a single argument
:param callbacks: The callbacks to invoke when threshold is reached
:type threshold: int
:param threshold: The progress threshold in which to take the
aggregated progress and invoke the progress callback with that
aggregated progress total
r N)�
_callbacks�
_threshold�_bytes_seen)�self� callbacks� threshold� r �>/opt/cppython/lib/python3.8/site-packages/s3transfer/upload.py�__init__"