File: //proc/thread-self/root/lib/python3.6/site-packages/s3transfer/__pycache__/upload.cpython-36.pyc
3
\��_vs � @ s d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z d dlm
Z
d dlmZ d dlmZ d d l
mZ d d
l
mZ d dl
mZmZ G dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de
�ZG dd� de �ZG dd� de �ZdS )� N)�six)�seekable�readable)�IN_MEMORY_UPLOAD_TAG)�Task)�SubmissionTask)�CreateMultipartUploadTask)�CompleteMultipartUploadTask)�
get_callbacks)�get_filtered_dict)�DeferredOpenFile�ChunksizeAdjusterc @ s. e Zd Zd
dd�Zdd� Zdd� Zd d
� ZdS )�AggregatedProgressCallbacki � 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 �/usr/lib/python3.6/upload.py�__init__ s z#AggregatedProgressCallback.__init__c C s&