HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pbr/tests/__pycache__/util.cpython-38.pyc
U

jP�^f
�@slddlZddlZddlZddlZddlZzddlZWnek
rPddlZYnXejdd��Z	dd�Z
dS)�Nc	csPtjdkrt��}nt��}|�|�|Vt|d��}|�|�W5QRXdS)N)���w)�sys�version_info�configparser�ConfigParserZSafeConfigParser�read�open�write)�filenameZcfg�fp�r�0/usr/lib/python3/dist-packages/pbr/tests/util.py�open_config5s


rcCsdd�}tj||d�S)zkshutil.rmtree() with error handler.

    Handle 'access denied' from trying to delete read-only files.
    cSs,t�|tj�s&t�|tj�||�n�dS)N)�os�access�W_OK�chmod�stat�S_IWUSR)�func�path�exc_inforrr�onerrorGs
zrmtree.<locals>.onerror)r)�shutil�rmtree)rrrrrrAsr)�
contextlibrrrrrr�ImportError�contextmanagerrrrrrr�<module>)s