/usr/lib/python3/dist-packages/twisted/python/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/python/__pycache__/release.cpython-310.pyc (1525B)
o
¯bP ã @ sR d Z ddlZG dd„ deƒZG dd„ deƒZG dd„ deƒZddd„Zd
d„ ZdS )zf
A release-automation toolkit.
Don't use this outside of Twisted.
Maintainer: Christopher Armstrong
é Nc @ ó e Zd ZdZdS )ÚDirectoryExistsz2
Some directory exists when it shouldn't.
N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r r ú8/usr/lib/python3/dist-packages/twisted/python/release.pyr ó r c @ r )ÚDirectoryDoesntExistz6
Some directory doesn't exist when it should.
Nr r r r r
r r r c @ s e Zd ZdS )Ú
CommandFailedN)r r r r r r r
r
" s r
TFc C sF t d| ƒ |rtdƒ d¡rdS |rd| } t | ¡dkr!t| ƒ‚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 )ÚprintÚinputÚ
startswithÚosÚsystemr
)ÚcommandÚnullÚpromptr r r
Úsh) s
ÿr c O s4 t j d¡}z
| |i |¤ŽW t |¡ S t |¡ w )NÚ.)r ÚpathÚabspathÚchdir)ÚfÚargsÚkwÚorigdirr r r
ÚrunChdirSafe: s r )TF)r r ÚOSErrorr r r
r r r r r r
Ú
s