HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/python/__pycache__/release.cpython-38.pyc
U


W[��@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
�8/usr/lib/python3/dist-packages/twisted/python/release.pyrsrc@seZdZdZdS)�DirectoryDoesntExistz6
    Some directory doesn't exist when it should.
    Nrr
r
r
rrsrc@seZdZdS)�
CommandFailedN)rrrr
r
r
rr
%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
)ZcommandZnull�promptr
r
r�sh,s
rc	Os,tj�d�}z|||�W�St�|�XdS)N�.)r�path�abspath�chdir)�f�args�kwZorigdirr
r
r�runChdirSafe>sr)TF)r	Z
__future__rrZtwisted.python.compatr�OSErrorrrr
rrr
r
r
r�<module>s