+
    [mh|                     2   ^ RI t ^ RIHt ^ RIHtHt ^ RIHt ^ RIH	t	 ^ RI
HtHtHtHt ^ RIHtHtHtHt  ! R R	4      t ! R
 R4      t ! R R4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )    N)BytesIOreadableseekable)FULL_OBJECT_CHECKSUM_ARGS)IN_MEMORY_UPLOAD_TAG)CompleteMultipartUploadTaskCreateMultipartUploadTaskSubmissionTaskTask)ChunksizeAdjusterDeferredOpenFileget_callbacksget_filtered_dictc                   <   a  ] tR t^!t o RR ltR tR tR tRtV t	R# )AggregatedProgressCallbackc                ,    Wn         W n        ^ V n        R# )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
N)
_callbacks
_threshold_bytes_seen)self	callbacks	thresholds   &&&3/usr/lib/python3/dist-packages/s3transfer/upload.py__init__#AggregatedProgressCallback.__init__"   s     $#    c                    V ;P                   V,          un         V P                   V P                  8  d   V P                  4        R # R # N)r   r   _trigger_callbacks)r   bytes_transferreds   &&r   __call__#AggregatedProgressCallback.__call__2   s7    --t.##% /r   c                L    V P                   ^ 8  d   V P                  4        R# R# )z@Flushes out any progress that has not been sent to its callbacksN)r   r    r   s   &r   flush AggregatedProgressCallback.flush7   s!    a##%  r   c                `    V P                    F  pV! V P                  R 7       K  	  ^ V n        R# ))r!   N)r   r   )r   callbacks   & r   r    -AggregatedProgressCallback._trigger_callbacks<   s&    Ht'7'78 (r   )r   r   r   N)i   )
__name__
__module____qualname____firstlineno__r   r"   r&   r    __static_attributes____classdictcell____classdict__s   @r   r   r   !   s      &
&
 r   r   c                   V   a  ] tR t^Bt o RtR tRR ltRR ltR tR t	R t
R	 tR
tV tR# )InterruptReadera  Wrapper that can interrupt reading using an error

It uses a transfer coordinator to propagate an error if it notices
that a read is being made while the file is being read from.

:type fileobj: file-like obj
:param fileobj: The file-like object to read from

:type transfer_coordinator: s3transfer.futures.TransferCoordinator
:param transfer_coordinator: The transfer coordinator to use if the
    reader needs to be interrupted.
c                    Wn         W n        R # r   _fileobj_transfer_coordinator)r   fileobjtransfer_coordinators   &&&r   r   InterruptReader.__init__P   s    %9"r   Nc                    V P                   P                  '       d   V P                   P                  hV P                  P                  V4      # r   )r8   	exceptionr7   read)r   amounts   &&r   r>   InterruptReader.readT   s=     %%///,,666}}!!&))r   c                <    V P                   P                  W4       R # r   )r7   seek)r   wherewhences   &&&r   rB   InterruptReader.seek^   s    5)r   c                6    V P                   P                  4       # r   )r7   tellr%   s   &r   rG   InterruptReader.tella   s    }}!!##r   c                :    V P                   P                  4        R # r   )r7   closer%   s   &r   rJ   InterruptReader.closed   s    r   c                    V # r    r%   s   &r   	__enter__InterruptReader.__enter__g   s    r   c                &    V P                  4        R # r   )rJ   )r   argskwargss   &*,r   __exit__InterruptReader.__exit__j   s    

r   r6   r   r   )r+   r,   r-   r.   __doc__r   r>   rB   rG   rJ   rN   rS   r/   r0   r1   s   @r   r4   r4   B   s2     :**$ r   r4   c                   n   a  ] tR t^nt o RtRR lt]R 4       tR tR t	R t
R tR	 tR
 tR tR tRtV tR# )UploadInputManagera"  Base manager class for handling various types of files for uploads

This class is typically used for the UploadSubmissionTask class to help
determine the following:

    * How to determine the size of the file
    * How to determine if a multipart upload is required
    * How to retrieve the body for a PutObject
    * How to retrieve the bodies for a set of UploadParts

The answers/implementations differ for the various types of file inputs
that may be accepted. All implementations must subclass and override
public methods from this class.
Nc                *    Wn         W n        W0n        R # r   )_osutilr8   _bandwidth_limiter)r   osutilr:   bandwidth_limiters   &&&&r   r   UploadInputManager.__init__~   s    %9""3r   c                    \        R4      h)zDetermines if the source for the upload is compatible with manager

:param upload_source: The source for which the upload will pull data
    from.

:returns: True if the manager can handle the type of source specified
    otherwise returns False.
zmust implement _is_compatible()NotImplementedErrorclsupload_sources   &&r   is_compatible UploadInputManager.is_compatible   s     ""CDDr   c                    \        R4      h)a  Whether the body it provides are stored in-memory

:type operation_name: str
:param operation_name: The name of the client operation that the body
    is being used for. Valid operation_names are ``put_object`` and
    ``upload_part``.

:rtype: boolean
:returns: True if the body returned by the manager will be stored in
    memory. False if the manager will not directly store the body in
    memory.
z%must implement store_body_in_memory()r`   r   operation_names   &&r   stores_body_in_memory(UploadInputManager.stores_body_in_memory   s     ""IJJr   c                    \        R4      h)zProvides the transfer size of an upload

:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The future associated with upload request
z&must implement provide_transfer_size()r`   r   transfer_futures   &&r   provide_transfer_size(UploadInputManager.provide_transfer_size   s     ""JKKr   c                    \        R4      h)a  Determines where a multipart upload is required

:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The future associated with upload request

:type config: s3transfer.manager.TransferConfig
:param config: The config associated to the transfer manager

:rtype: boolean
:returns: True, if the upload should be multipart based on
    configuration and size. False, otherwise.
z*must implement requires_multipart_upload()r`   r   rn   configs   &&&r   requires_multipart_upload,UploadInputManager.requires_multipart_upload   s     ""NOOr   c                    \        R4      h)a  Returns the body to use for PutObject

:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The future associated with upload request

:type config: s3transfer.manager.TransferConfig
:param config: The config associated to the transfer manager

:rtype: s3transfer.utils.ReadFileChunk
:returns: A ReadFileChunk including all progress callbacks
    associated with the transfer future.
z$must implement get_put_object_body()r`   rm   s   &&r   get_put_object_body&UploadInputManager.get_put_object_body   s     ""HIIr   c                    \        R4      h)a  Yields the part number and body to use for each UploadPart

:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The future associated with upload request

:type chunksize: int
:param chunksize: The chunksize to use for this upload.

:rtype: int, s3transfer.utils.ReadFileChunk
:returns: Yields the part number and the ReadFileChunk including all
    progress callbacks associated with the transfer future for that
    specific yielded part.
z)must implement yield_upload_part_bodies()r`   )r   rn   	chunksizes   &&&r   yield_upload_part_bodies+UploadInputManager.yield_upload_part_bodies   s     ""MNNr   c                    \        WP                  4      pV P                  '       d(   V P                  P                  WP                  R R7      pV# )F)enabled)r4   r8   r[   get_bandwith_limited_stream)r   r9   s   &&r   _wrap_fileobj UploadInputManager._wrap_fileobj   sL    !'+E+EF"""--II33U J G r   c                F    \        VR 4      pV'       d   \        V4      .# . # )progress)r   r   )r   rn   r   s   && r   _get_progress_callbacks*UploadInputManager._get_progress_callbacks   s&    !/:>	 .y9::	r   c                B    V Uu. uF  q"P                   NK  	  up# u upi r   )r&   )r   aggregated_progress_callbacksr)   s   && r   _get_close_callbacks'UploadInputManager._get_close_callbacks   s    /LM/L8/LMMMs   )r[   rZ   r8   r   )r+   r,   r-   r.   rV   r   classmethodre   rj   ro   rt   rw   r{   r   r   r   r/   r0   r1   s   @r   rX   rX   n   sY     4
 	E 	EKLPJO N Nr   rX   c                   j   a  ] tR t^t o Rt]R 4       tR tR tR t	R t
R tR tR	 tR
 tR tRtV tR# )UploadFilenameInputManagerzUpload utility for filenamesc                "    \        V\        4      # r   )
isinstancestrrb   s   &&r   re   (UploadFilenameInputManager.is_compatible   s    ---r   c                    R # )FrM   rh   s   &&r   rj   0UploadFilenameInputManager.stores_body_in_memory   s    r   c                    VP                   P                  V P                  P                  VP                   P                  P
                  4      4       R # r   )metaro   rZ   get_file_size	call_argsr9   rm   s   &&r   ro   0UploadFilenameInputManager.provide_transfer_size   s:    22LL&&';';'E'E'M'MN	
r   c                H    VP                   P                  VP                  8  # r   )r   sizemultipart_thresholdrr   s   &&&r   rt   4UploadFilenameInputManager.requires_multipart_upload   s    ##((F,F,FFFr   c                    V P                  V4      w  r#V P                  V4      pV P                  V4      pV P                  V4      pVP                  P
                  pV P                  P                  VVVVVR 7      # )r9   
chunk_sizefull_file_sizer   close_callbacks)&_get_put_object_fileobj_with_full_sizer   r   r   r   r   rZ   #open_file_chunk_reader_from_fileobj)r   rn   r9   	full_sizer   r   r   s   &&     r   rw   .UploadFilenameInputManager.get_put_object_body   s    !HH
 $$W-00A	33I>##(( ||??$+ @ 
 	
r   c           	   #    "   VP                   P                  pV P                  W4      p\        ^V^,           4       F  pV P	                  V4      pV P                  V4      pW%^,
          ,          pV P                  VP                   P                  P                  VVVR7      w  rV P                  V	4      p	V P                  P                  V	VV
VVR7      pW[3x  K  	  R# 5i)   )
start_byte	part_sizer   r   N)r   r   _get_num_partsranger   r   '_get_upload_part_fileobj_with_full_sizer   r9   r   rZ   r   )r   rn   rz   r   	num_partspart_numberr   r   r   r9   r   read_file_chunks   &&&         r   r{   3UploadFilenameInputManager.yield_upload_part_bodies  s     (--22''C	 IM2K44_EI"77	BO"Ao6J "&!M!M$$..66%#-	 "N "G ((1G #llNN$(# / O O ..5 3s   C C"c                H    \        WV P                  P                  R 7      pV# ))open_function)r   rZ   open)r   r9   r   s   &&&r   _get_deferred_open_file2UploadFilenameInputManager._get_deferred_open_file2  s"    "t||/@/@
 r   c                    VP                   P                  P                  pVP                   P                  pV P	                  V^ 4      V3# rU   )r   r   r9   r   r   r   rn   r9   r   s   &&  r   r   AUploadFilenameInputManager._get_put_object_fileobj_with_full_size8  sB    !&&0088##((++GQ7==r   c                L    VR ,          pVR,          pV P                  W4      V3# )r   r   )r   )r   r9   rR   r   r   s   &&,  r   r   BUploadFilenameInputManager._get_upload_part_fileobj_with_full_size=  s-    L)
+,	++G@)KKr   c                    \        \        P                  ! VP                  P                  \        V4      ,          4      4      # r   )intmathceilr   r   float)r   rn   r   s   &&&r   r   )UploadFilenameInputManager._get_num_partsB  s,    499_1166y9IIJKKr   rM   N)r+   r,   r-   r.   rV   r   re   rj   ro   rt   rw   r{   r   r   r   r   r/   r0   r1   s   @r   r   r      sP     &. .

G
0/>>
L
L Lr   r   c                   L   a  ] tR tRt o Rt]R 4       tR tR tR t	R t
RtV tR	# )
UploadSeekableInputManageriF  z&Upload utility for an open file objectc                >    \        V4      ;'       d    \        V4      # r   r   rb   s   &&r   re   (UploadSeekableInputManager.is_compatibleI  s    &BB8M+BBr   c                    VR 8X  d   R# R# )
put_objectFTrM   rh   s   &&r   rj   0UploadSeekableInputManager.stores_body_in_memoryM  s    \)r   c                   VP                   P                  P                  pVP                  4       pVP	                  ^ ^4       VP                  4       pVP	                  V4       VP                   P                  WC,
          4       R# r   N)r   r   r9   rG   rB   ro   )r   rn   r9   start_positionend_positions   &&   r   ro   0UploadSeekableInputManager.provide_transfer_sizeS  se    !&&0088 !Q||~^$22)	
r   c                ^    VP                  VR ,          4      p\        V4      \        V4      3# )r   )r>   r   len)r   r9   rR   datas   &&, r   r   BUploadSeekableInputManager._get_upload_part_fileobj_with_full_size`  s,     ||F;/0 t}c$i''r   c                    VP                   P                  P                  pVP                  4       VP                   P                  ,           pW#3# r   )r   r   r9   rG   r   r   s   &&  r   r   AUploadSeekableInputManager._get_put_object_fileobj_with_full_sizeo  s?    !&&0088 ||~ 4 4 9 99}r   rM   N)r+   r,   r-   r.   rV   r   re   rj   ro   r   r   r/   r0   r1   s   @r   r   r   F  s5     0C C
( r   r   c                   x   a a ] tR tRt oRtRV 3R llt]R 4       tR tR t	R t
R tR	 tRR
 ltR tRtVtV ;t# )UploadNonSeekableInputManageriw  z7Upload utility for a file-like object that cannot seek.c                6   < \         SV `  WV4       R V n        R# )r   N)superr   _initial_data)r   r\   r:   r]   	__class__s   &&&&r   r   &UploadNonSeekableInputManager.__init__z  s    7HI r   c                    \        V4      # r   )r   rb   s   &&r   re   +UploadNonSeekableInputManager.is_compatible~  s    &&r   c                    R # TrM   rh   s   &&r   rj   3UploadNonSeekableInputManager.stores_body_in_memory  s    r   c                    R # r   rM   rm   s   &&r   ro   3UploadNonSeekableInputManager.provide_transfer_size  s     	r   c                :   VP                   P                  e$   VP                   P                  VP                  8  # VP                   P                  P                  pVP                  pV P                  W4R4      V n        \        V P                  4      V8  d   R# R# )NFT)r   r   r   r   r9   _readr   r   )r   rn   rs   r9   r   s   &&&  r   rt   7UploadNonSeekableInputManager.requires_multipart_upload  s    $$0"'',,0J0JJJ "&&0088..	!ZZEBt!!"Y.r   c                    V P                  V4      pV P                  V4      pVP                  P                  P                  pV P                  V P                  VP                  4       ,           W#4      pR V n        V# r   )r   r   r   r   r9   
_wrap_datar   r>   )r   rn   r   r   r9   bodys   &&    r   rw   1UploadNonSeekableInputManager.get_put_object_body  sl    00A	33I>!&&0088/
 "r   c              #    "   VP                   P                  P                  p^ p V P                  V4      pV P	                  V4      pV^,          pV P                  W24      pV'       g   R# V P                  WuV4      pRpWH3x  Kb  5ir   )r   r   r9   r   r   r   r   )	r   rn   rz   file_objectr   r   r   part_contentpart_objects	   &&&      r   r{   6UploadNonSeekableInputManager.yield_upload_part_bodies  s     %**44<< 44_EI"77	BO1K::k=L//K
  L**s   BBc                   \        V P                  4      ^ 8X  d   VP                  V4      # V\        V P                  4      8:  d.   V P                  RV pV'       d   V P                  VR V n        V# V\        V P                  4      ,
          pV P                  VP                  V4      ,           pV'       d   RV n        V# )a  
Reads a specific amount of data from a stream and returns it. If there
is any data in initial_data, that will be popped out first.

:type fileobj: A file-like object that implements read
:param fileobj: The stream to read from.

:type amount: int
:param amount: The number of bytes to read from the stream.

:type truncate: bool
:param truncate: Whether or not to truncate initial_data after
    reading from it.

:return: Generator which generates part bodies from the initial data.
Nr   )r   r   r>   )r   r9   r?   truncater   amount_to_reads   &&&&  r   r   #UploadNonSeekableInputManager._read  s    $ t!!"a'<<'' S++,,%%gv.D %)%7%7%@"K
  #d&8&8"99!!GLL$@@ !$Dr   c                    V P                  \        V4      4      pV P                  P                  V\	        V4      \	        V4      VVR7      # )ah  
Wraps data with the interrupt reader and the file chunk reader.

:type data: bytes
:param data: The data to wrap.

:type callbacks: list
:param callbacks: The callbacks associated with the transfer future.

:type close_callbacks: list
:param close_callbacks: The callbacks to be called when closing the
    wrapper for the data.

:return: Fully wrapped data.
r   )r   r   rZ   r   r   )r   r   r   r   r9   s   &&&& r   r   (UploadNonSeekableInputManager._wrap_data  sL      $$WT]3||??4yt9+ @ 
 	
r   )r   r   r   )r+   r,   r-   r.   rV   r   r   re   rj   ro   rt   rw   r{   r   r   r/   r0   __classcell__)r   r2   s   @@r   r   r   w  sJ     A! ' '
"+((T
 
r   r   c                      a  ] tR tRt o RtRR.t]R.,           t. ROt. RO],           t	R t
RR ltR tR	 tR
 tR tR tR tR tRtV tR# )UploadSubmissionTaski  z.Task for submitting tasks to execute an uploadChecksumTypeMpuObjectSizec                    \         \        \        .pVP                  P                  P
                  pV F  pVP                  V4      '       g   K  Vu # 	  \        RV R\        V4       R24      h)a?  Retrieves a class for managing input for an upload based on file type

:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The transfer future for the request

:rtype: class of UploadInputManager
:returns: The appropriate class to use for managing a specific type of
    input for uploads.
zInput z
 of type: z is not supported.)	r   r   r   r   r   r9   re   RuntimeErrortype)r   rn   upload_manager_resolver_chainr9   upload_manager_clss   &&   r   _get_upload_input_manager_cls2UploadSubmissionTask._get_upload_input_manager_cls  sw     '&))
% "&&0088"?!//88)) #@ WIZW6HI
 	
r   Nc                &   V P                  V4      ! W0P                  V4      pVP                  P                  f   VP	                  V4       VP                  WR4      '       g   V P                  VVVVVV4       R# V P                  VVVVVV4       R# )aj  
:param client: The client associated with the transfer manager

:type config: s3transfer.manager.TransferConfig
:param config: The transfer config associated with the transfer
    manager

:type osutil: s3transfer.utils.OSUtil
:param osutil: The os utility associated to the transfer manager

:type request_executor: s3transfer.futures.BoundedExecutor
:param request_executor: The request executor associated with the
    transfer manager

:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The transfer future associated with the
    transfer request that tasks are being submitted for
N)r   r8   r   r   ro   rt   _submit_upload_request_submit_multipart_request)r   clientrs   r\   request_executorrn   r]   upload_input_managers   &&&&&&& r   _submitUploadSubmissionTask._submit3  s    6  $AA 

,,.? A
 $$, 66G $==
 
 '' $ ** $r   c                N   VP                   P                  pV P                  VP                  4      pV P	                  VR 4      p	V P
                  P                  V\        V P
                  RVRVP                  V4      RVP                  RVP                  RV/RR7      V	R7       R	# )
r   r  r9   bucketkey
extra_argsT)r:   main_kwargsis_finaltagN)r   r   _extra_put_object_argsr	  _get_upload_task_tagr8   submitPutObjectTaskrw   r  r  )
r   r  rs   r\   r  rn   r  r   put_object_extra_argsput_object_tags
   &&&&&&&   r   r   +UploadSubmissionTask._submit_upload_requestl  s     $((22	 $ ; ;  !

 22 ,

 	""))%)%?%?f3GG'  i..9== "7   	* 	
r   c                T   VP                   P                  p\         FC  pWP                  9   g   K  R VP                  R&   VP	                  RR4      VP                  R&   KE  	  V P                  VP                  4      p	V P                  P                  V\        V P                  RVRVP                  RVP                  RV	/R	7      4      p
. pV P                  VP                  4      pV P                  VR
4      pVP                   P                  p\        4       pVP                  VP                   V4      pVP#                  VV4      pV Fk  w  ppVP%                  V P                  P                  V\'        V P                  RVRVRVP                  RVP                  RVRV/RV
/R7      VR7      4       Km  	  V P)                  VP                  4      pV P                  P                  V\+        V P                  RVRVP                  RVP                  RV/RV
RV/RR7      4       R# )FULL_OBJECTr   Checksum ChecksumAlgorithmr  r  r  r	  )r:   r
  upload_partr9   r   	upload_id)r:   r
  pending_main_kwargsr  partsT)r:   r
  r  r  N)r   r   r   r	  replace_extra_create_multipart_argsr8   r  r
   r  r  _extra_upload_part_argsr  r   r   adjust_chunksizemultipart_chunksizer{   appendUploadPartTask_extra_complete_multipart_argsr	   )r   r  rs   r\   r  rn   r  r   checksumcreate_multipart_extra_argscreate_multipart_futurepart_futuresextra_part_argsupload_part_tagr   adjusterrz   part_iteratorr   r9   complete_multipart_extra_argss   &&&&&&&              r   r   .UploadSubmissionTask._submit_multipart_request  sS    $((22	 2H///7D	$$^4<D<L<L=	$$%89 2 '+&G&G  '
#
 #'"<"<"C"C%%)%?%?fi..9== "=	#
 66y7K7KL 33 -
 ##(($&--f.H.H$O	,EEY
 %2 K**11$"-1-G-G$f%w$i&6&6!9==);(/% ()@- (! 2  %2, )-(K(K  )
% 	""))'%)%?%?fi..9== "?	  !8\% 	
r   c                ,    \        WP                  4      # r   )r   UPLOAD_PART_ARGSr   r	  s   &&r   r   ,UploadSubmissionTask._extra_upload_part_args  s     !-B-BCCr   c                ,    \        WP                  4      # r   )r   COMPLETE_MULTIPART_ARGSr2  s   &&r   r%  3UploadSubmissionTask._extra_complete_multipart_args  s     -I-IJJr   c                .    \        WP                  R 7      # )blocklisted_keys)r   CREATE_MULTIPART_BLOCKLISTr2  s   &&r   r  1UploadSubmissionTask._extra_create_multipart_args  s     )H)H
 	
r   c                .    \        WP                  R 7      # r8  )r   PUT_OBJECT_BLOCKLISTr2  s   &&r   r  +UploadSubmissionTask._extra_put_object_args  s     )B)B
 	
r   c                D    R pVP                  V4      '       d   \        pV# r   )rj   r   )r   r  ri   r  s   &&& r   r  )UploadSubmissionTask._get_upload_task_tag  s"    55nEE&C
r   rM   )r  SSECustomerKeySSECustomerAlgorithmSSECustomerKeyMD5RequestPayerExpectedBucketOwner)rA  rB  rC  rD  rE  r   r   r   )r+   r,   r-   r.   rV   r=  r   r:  r1  r5  r   r  r   r   r   r%  r  r  r  r/   r0   r1   s   @r   r   r     ss     8*O<!:o=N!N 	""
07r%
Na
FD
K



 r   r   c                   *   a  ] tR tRt o RtR tRtV tR# )r  i  z Task to do a nonmultipart uploadc                    V;_uu_ 4       pVP                   ! RRVRVRV/VB  RRR4       R#   + '       g   i     R# ; i)a  
:param client: The client to use when calling PutObject
:param fileobj: The file to upload.
:param bucket: The name of the bucket to upload to
:param key: The name of the key to upload to
:param extra_args: A dictionary of any extra arguments that may be
    used in the upload.
BucketKeyBodyNrM   )r   )r   r  r9   r  r  r	  r   s   &&&&&& r   _mainPutObjectTask._main  s7     WNVNN4N:N WWWs   .?	rM   Nr+   r,   r-   r.   rV   rK  r/   r0   r1   s   @r   r  r    s     *
O 
Or   r  c                   *   a  ] tR tRt o RtR tRtV tR# )r$  i  z+Task to upload a part in a multipart uploadc                   V;_uu_ 4       pVP                   ! R
RVRVRVRVRV/VB p	RRR4       X	R,          p
RV
RV/pRV9   d-   VR,          P                  4       pR	V 2pW9   d   W,          W&   V#   + '       g   i     LT; i)a[  
:param client: The client to use when calling PutObject
:param fileobj: The file to upload.
:param bucket: The name of the bucket to upload to
:param key: The name of the key to upload to
:param upload_id: The id of the upload
:param part_number: The number representing the part of the multipart
    upload
:param extra_args: A dictionary of any extra arguments that may be
    used in the upload.

:rtype: dict
:returns: A dictionary representing a part::

    {'Etag': etag_value, 'PartNumber': part_number}

    This value can be appended to a list to be used to complete
    the multipart upload.
rH  rI  UploadId
PartNumberrJ  NETagr  r  rM   )r  upper)r   r  r9   r  r  r  r   r	  r   responseetagpart_metadataalgorithm_namechecksum_members   &&&&&&&&      r   rK  UploadPartTask._main"  s    , W))  # '	
  H  |[A*,'(;<BBDN ((89O*191J.! Ws   A44B	rM   NrM  r1   s   @r   r$  r$    s     5& &r   r$  )r   ior   s3transfer.compatr   r   s3transfer.constantsr   s3transfer.futuresr   s3transfer.tasksr	   r
   r   r   s3transfer.utilsr   r   r   r   r   r4   rX   r   r   r   r   r  r$  rM   r   r   <module>r`     s      0 : 3   B) )XxN xNvZL!3 ZLz.!; .bG
$6 G
TK> K\OD O )T )r   