HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/s3transfer/__pycache__/compat.cpython-310.pyc
o

�y�`��@s�ddlZddlZddlZddlZddlZddlmZej�d�r%dd�Z	nej
Z	ejr4dd�Ze
ZdZn
dd�ZejZejZd	d
�Zdd�Zd
d�ZddlmZdS)�N)�six�winc
CsRzt�|�Wnty }z
|jtjks�WYd}~nd}~wwt�||�dS)N)�os�remove�OSError�errno�ENOENT�rename)�current_filename�new_filename�e�r
�3/usr/lib/python3/dist-packages/s3transfer/compat.py�rename_files���rcC�t�|�dS�N�)�inspect�getfullargspec��funcr
r
r�accepts_kwargs&srcCrr)r�
getargspecrr
r
rr2sc	CsVt|d�r	|��St|d�r)t|d�r)z	|�dd�WdSttfy(YdSwdS)z�Backwards 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)�hasattrrrr�IOError��fileobjr
r
rr9s
	�rcCst|d�r	|��St|d�S)z�Determines 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)rr!rr
r
rr!Qs

r!cCs.ttd�rt�|��d|�dS|�|�dS)N�posix_fallocater)rrr#�fileno�truncate)r �sizer
r
r�	fallocate^s
r')�BaseManager)r�sysrr�socket�botocore.compatr�platform�
startswithrr	�PY3r�ConnectionError�SOCKET_ERROR�MAXINT�error�maxintrr!r'�multiprocessing.managersr(r
r
r
r�<module>s(