Your IP : 216.73.216.224


Current Path : /lib/python3/dist-packages/pbr/tests/__pycache__/
Upload File :
Current File : //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