
                            S SK r S SKrS SKrS SKrS SKrS SKJr  \R                  R                  S5      (       a  S r	O\R                  r	\R                  (       a  S r\rSrOS r\R                   r\R"                  rS rS rS	 rS S
KJr  g)    N)sixwinc                      [         R                  " U5        [         R
                  " X5        g ! [         a)  nUR                  [        R                  :X  d  e  S nANES nAff = f)N)osremoveOSErrorerrnoENOENTrename)current_filenamenew_filenamees      $lib/third_party/s3transfer/compat.pyrename_filer      sN    	IIl# 			"1  	77ell*
  +	s   / 
A"AA"c                 4    [         R                  " U 5      S   $ N   )inspectgetfullargspecfuncs    r   accepts_kwargsr   &   s     %%d+A..    c                 4    [         R                  " U 5      S   $ r   )r   
getargspecr   s    r   r   r   2   s    !!$'**r   c                     [        U S5      (       a  U R                  5       $ [        U S5      (       a%  [        U S5      (       a   U R                  SS5        gg! [        [        4 a     gf = f)zBackwards compat function to determine if a fileobj is seekable

:param fileobj: The file-like object to determine if seekable

:returns: True, if seekable. False, otherwise.
seekableseektellr      TF)hasattrr   r   r   IOErrorfileobjs    r   r   r   9   so     w
##!! 
&	!	!ggv&>&>	LLA
 	 ! 		s   A A,+A,c                 \    [        U S5      (       a  U R                  5       $ [        U S5      $ )zDetermines whether or not a file-like object is readable.

:param fileobj: The file-like object to determine if readable

:returns: True, if readable. False otherwise.
readableread)r!   r&   r#   s    r   r&   r&   Q   s-     w
##!!7F##r   c                     [        [        S5      (       a'  [        R                  " U R                  5       SU5        g U R	                  U5        g )Nposix_fallocater   )r!   r   r)   filenotruncate)r$   sizes     r   	fallocater-   ^   s7    r$%%
7>>+Q5r   )BaseManager)r   sysr   r	   socketbotocore.compatr   platform
startswithr   r   PY3r   ConnectionErrorSOCKET_ERRORMAXINTerrormaxintr   r&   r-   multiprocessing.managersr.    r   r   <module>r<      s     
 	    <<5!!
2 ))K77/ #LF+ <<LZZF0
$ 1r   