Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib64/python3.7/site-packages/twisted/python/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/twisted/python/__pycache__/release.cpython-37.pyc

B

:��]��@sjdZddlmZddlZddlmZGdd�de�ZGdd�de�ZGd	d
�d
e�Z	dd
d�Z
dd�ZdS)zf
A release-automation toolkit.

Don't use this outside of Twisted.

Maintainer: Christopher Armstrong
�)�print_functionN)�	raw_inputc@seZdZdZdS)�DirectoryExistsz2
    Some directory exists when it shouldn't.
    N)�__name__�
__module__�__qualname__�__doc__�r	r	�I/opt/alt/python37/lib64/python3.7/site-packages/twisted/python/release.pyrsrc@seZdZdZdS)�DirectoryDoesntExistz6
    Some directory doesn't exist when it should.
    N)rrrrr	r	r	r
rsrc@seZdZdS)�
CommandFailedN)rrrr	r	r	r
r%srTFcCsFtd|�|r td��d�r dS|r,d|}t�|�dkrBt|��dS)z�
    I'll try to execute C{command}, and if C{prompt} is true, I'll
    ask before running it.  If the command returns something other
    than 0, I'll raise C{CommandFailed(command)}.
    z--$zrun ?? �nNz%s > /dev/nullr)�printr�
startswith�os�systemr)�command�null�promptr	r	r
�sh,s
rc	Os(tj�d�}z
|||�St�|�XdS)N�.)r�path�abspath�chdir)�f�args�kwZorigdirr	r	r
�runChdirSafe>s
r)TF)r�
__future__rrZtwisted.python.compatr�OSErrorrrrrrr	r	r	r
�<module>
s