File: //lib/python2.7/site-packages/s3transfer/futures.pyc
�
P$�_c @ s� d d l m Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m
Z
d d l m Z m
Z
d d l m 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 e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ e d d g � Z e d � Z e d � Z! d S(! i����( t futures( t
namedtupleN( t MAXINT( t six( t CancelledErrort TransferNotDoneError( t FunctionContainer( t
TaskSemaphoret BaseTransferFuturec B s2 e Z e d � � Z d � Z d � Z d � Z RS( c C s t d � � d S( s- The metadata associated to the TransferFuturet metaN( t NotImplementedError( t self( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR s c C s t d � � d S( sm Determines if a TransferFuture has completed
:returns: True if completed. False, otherwise.
s done()N( R
( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyt done$ s c C s t d � � d S( s� Waits until TransferFuture is done and returns the result
If the TransferFuture succeeded, it will return the result. If the
TransferFuture failed, it will raise the exception associated to the
failure.
s result()N( R
( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyt result+ s c C s t d � � d S( s6 Cancels the request associated with the TransferFutures cancel()N( R
( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyt cancel4 s ( t __name__t
__module__t propertyR R R
R ( ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR s t BaseTransferMetac B s5 e Z e d � � Z e d � � Z e d � � Z RS( c C s t d � � d S( s* The call args used in the transfer requestt call_argsN( R
( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR : s c C s t d � � d S( s The unique id of the transfert transfer_idN( R
( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR ? s c C s t d � � d S( s. A dictionary that requesters can store data int user_contextN( R
( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR D s ( R R R R R R ( ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR 9 s t TransferFuturec B sJ e Z d d d � Z e d � � Z d � Z d � Z d � Z d � Z RS( c C sL | | _ | d k r$ t � | _ n | | _ | d k rH t � | _ n d S( s� The future associated to a submitted transfer request
:type meta: TransferMeta
:param meta: The metadata associated to the request. This object
is visible to the requester.
:type coordinator: TransferCoordinator
:param coordinator: The coordinator associated to the request. This
object is not visible to the requester.
N( t _metat Nonet TransferMetat _coordinatort TransferCoordinator( R R t coordinator( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyt __init__K s c C s | j S( N( R ( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR ^ s c C s
| j j � S( N( R R ( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR b s c C s; y | j j � SWn# t k
r6 } | j � | � n Xd S( N( R R
t KeyboardInterruptR ( R t e( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR
e s
c C s | j j � d S( N( R R ( R ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR o s c C s5 | j � s t d � � n | j j | d t �d S( s! Sets the exception on the future.s? set_exception can only be called once the transfer is complete.t overrideN( R R R t
set_exceptiont True( R t exception( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR! r s N(
R R R R R R R R
R R! ( ( ( s6 /usr/lib/python2.7/site-packages/s3transfer/futures.pyR J s
R c B sb e Z d Z d d d � Z e d � � Z e d � � Z e d � � Z e d � � Z d � Z
RS( s'