Deprecate commands.getstatus().

This commit is contained in:
Georg Brandl 2007-03-13 21:32:01 +00:00
parent 8e84c65660
commit 8044e5bbd4
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,8 @@ __all__ = ["getstatusoutput","getoutput","getstatus"]
#
def getstatus(file):
"""Return output of "ls -ld <file>" in a string."""
import warnings
warnings.warn("commands.getstatus() is deprecated", DeprecationWarning)
return getoutput('ls -ld' + mkarg(file))