summaryrefslogtreecommitdiffstats
path: root/Lib/commands.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-13 21:32:01 (GMT)
committerGeorg Brandl <georg@python.org>2007-03-13 21:32:01 (GMT)
commit8044e5bbd46b2ccd4e56fb2fb5424abdf212095c (patch)
treef1feb74fefc9439f5bef3d1d44b95b815e33440a /Lib/commands.py
parent8e84c65660dce5627c095f40cad07e90cb73a226 (diff)
downloadcpython-8044e5bbd46b2ccd4e56fb2fb5424abdf212095c.zip
cpython-8044e5bbd46b2ccd4e56fb2fb5424abdf212095c.tar.gz
cpython-8044e5bbd46b2ccd4e56fb2fb5424abdf212095c.tar.bz2
Deprecate commands.getstatus().
Diffstat (limited to 'Lib/commands.py')
-rw-r--r--Lib/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/commands.py b/Lib/commands.py
index cfbb541..d19aa1a 100644
--- a/Lib/commands.py
+++ b/Lib/commands.py
@@ -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))