Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
s3transfer
/
File Content:
tasks.pyc
� =��Xc @ s� d d l Z d d l Z d d l m Z e j e � Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t get_callbackst Taskc B s� e Z d Z d d d e d � Z d � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� A task associated to a TransferFuture request This is a base class for other classes to subclass from. All subclassed classes must implement the main() method. c C s | | _ | | _ | j d k r- i | _ n | | _ | d k rN i | _ n | | _ | j d k rr g | _ n | | _ d S( s� :type transfer_coordinator: s3transfer.futures.TransferCoordinator :param transfer_coordinator: The context associated to the TransferFuture for which this Task is associated with. :type main_kwargs: dict :param main_kwargs: The keyword args that can be immediately supplied to the _main() method of the task :type pending_main_kwargs: dict :param pending_main_kwargs: The keyword args that are depended upon by the result from a dependent future(s). The result returned by the future(s) will be used as the value for the keyword argument when _main() is called. The values for each key can be: * a single future - Once completed, its value will be the result of that single future * a list of futures - Once all of the futures complete, the value used will be a list of each completed future result value in order of when they were originally supplied. :type done_callbacks: list of callbacks :param done_callbacks: A list of callbacks to call once the task is done completing. Each callback will be called with no arguments and will be called no matter if the task succeeds or an exception is raised. :type is_final: boolean :param is_final: True, to indicate that this task is the final task for the TransferFuture request. By setting this value to True, it will set the result of the entire TransferFuture to the result returned by this task's main() method. N( t _transfer_coordinatort _main_kwargst Nonet _pending_main_kwargst _done_callbackst _is_final( t selft transfer_coordinatort main_kwargst pending_main_kwargst done_callbackst is_final( ( s4 /tmp/pip-build-uEGWVr/s3transfer/s3transfer/tasks.pyt __init__ s # c C sM d d d d d d d g } | j | j | � } d | j j | j j | f S( Nt buckett keyt part_numbert final_filenamet transfer_futuret offsett extra_argss %s(transfer_id=%s, %s)( t"