[Note: it would be nice to add functions to interpret the exit status.] i����(twarnpy3ksUthe commands module has been removed in Python 3.0; use the subprocess module insteadt stacklevelitgetstatusoutputt getoutputt getstatuscCs3ddl}|jdtd�tdt|��S(s-Return output of "ls -ld <file>" in a string.i����Ns"commands.getstatus() is deprecatedisls -ld(twarningstwarntDeprecationWarningRtmkarg(tfileR((s /usr/lib64/python2.7/commands.pyR%scCst|�dS(s=Return output (stdout or stderr) of executing cmd in a shell.i(R(tcmd((s /usr/lib64/python2.7/commands.pyR0scCszddl}|jd|dd�}|j�}|j�}|dkrSd}n|ddkrp|d }n||fS(s4Return (status, output) of executing cmd in a shell.i����Ns{ s; } 2>&1tris (tostpopentreadtclosetNone(R Rtpipettexttsts((s /usr/lib64/python2.7/commands.pyR8s cCs%ddl}t|jj||��S(Ni����(RRtpathtjoin(theadtxR((s /usr/lib64/python2.7/commands.pytmk2argEscCs`d|krd|dSd}x1|D])}|dkrD|d}n||}q%W|d}|S(Ns's 's "s\$"`s\t"((Rtstc((s /usr/lib64/python2.7/commands.pyRQs