HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/s3transfer/__pycache__/compat.cpython-311.pyc
�

/�;f����ddlZddlZddlZddlZddlZddlmZej�d��rd�Z	nej
Z	d�ZeZ
dZd�Zd�Zd�Zdd	lmZdS)
�N)�six�winc��	tj|��n-#t$r }|jtjks�Yd}~nd}~wwxYwtj||��dS)N)�os�remove�OSError�errno�ENOENT�rename)�current_filename�new_filename�es   �D/opt/alt/python311/lib/python3.11/site-packages/s3transfer/compat.py�rename_filersy��	��I�l�#�#�#�#���	�	�	��7�e�l�*�*�
�+�*�*�*�*�����	����	�	�"�L�1�1�1�1�1s��
A�<�Ac�6�tj|��dS)N�)�inspect�getfullargspec)�funcs r�accepts_kwargsr%s���!�$�'�'��*�*�c���t|d��r|���St|d��r:t|d��r*	|�dd��dS#t$rYdSwxYwdS)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��fileobjs rrr1s����w�
�#�#�
����!�!�!�
��&�	!�	!��g�g�v�&>�&>��	��L�L��A�����4���	�	�	��5�5�	�����5s�A�
A,�+A,c�j�t|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!rs rr!r!Is8���w�
�#�#�"����!�!�!��7�F�#�#�#rc��ttd��r*tj|���d|��dS|�|��dS)N�posix_fallocater)rrr$�fileno�truncate)r�sizes  r�	fallocater(VsT���r�$�%�%��
��7�>�>�+�+�Q��5�5�5�5�5���������r)�BaseManager)r	rr�socket�sys�botocore.compatr�platform�
startswithrrr�ConnectionError�SOCKET_ERROR�MAXINTrr!r(�multiprocessing.managersr)�rr�<module>r4s���
��������	�	�	�	�
�
�
�
�
�
�
�
��������<���5�!�!�
�
2�
2�
2�
2��)�K�+�+�+���	
�����0
$�
$�
$����1�0�0�0�0�0�0�0r