def getstatus(file):
 import warnings
 warnings.warn('commands.getstatus() is deprecated', DeprecationWarning)
 return getoutput(('ls -ld' + mkarg(file)))

def getstatus ( file ) : import warnings warnings . warn ( 'commands.getstatus() is deprecated' , DeprecationWarning ) return getoutput ( ( 'ls -ld' + mkarg ( file ) ) )
return output of "ls -ld <file>" in a string .