Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/python/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/python/release.pyc


zHc@s|dZddlZddlZdefdYZdefdYZdefdYZeed	Z	d
Z
dS(sf
A release-automation toolkit.

Don't use this outside of Twisted.

Maintainer: Christopher Armstrong
iNtDirectoryExistscBseZdZRS(s(Some directory exists when it shouldn't.(t__name__t
__module__t__doc__(((s:/usr/lib/python2.7/dist-packages/twisted/python/release.pyRstDirectoryDoesntExistcBseZdZRS(s,Some directory doesn't exist when it should.(RRR(((s:/usr/lib/python2.7/dist-packages/twisted/python/release.pyRst
CommandFailedcBseZRS((RR(((s:/usr/lib/python2.7/dist-packages/twisted/python/release.pyRscCsfdG|GH|r+tdjdr+dSn|r>d|}ntj|dkrbt|ndS(s
    I'll try to execute `command', and if `prompt' is true, I'll
    ask before running it.  If the command returns something other
    than 0, I'll raise CommandFailed(command).
    s--$srun ?? tnNs%s > /dev/nulli(t	raw_inputt
startswithtostsystemR(tcommandtnulltprompt((s:/usr/lib/python2.7/dist-packages/twisted/python/release.pytsh"s	
cOs8tjjd}z|||SWdtj|XdS(Nt.(R	tpathtabspathtchdir(tftargstkwtorigdir((s:/usr/lib/python2.7/dist-packages/twisted/python/release.pytrunChdirSafe4s(RR	tretOSErrorRRRtTruetFalseRR(((s:/usr/lib/python2.7/dist-packages/twisted/python/release.pyt<module>s