summaryrefslogtreecommitdiff
path: root/Lib/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/commands.py')
-rw-r--r--Lib/commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/commands.py b/Lib/commands.py
index cfbb541cfd..858b3d6f35 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, 2)
return getoutput('ls -ld' + mkarg(file))
@@ -61,6 +63,8 @@ def getstatusoutput(cmd):
# Make command argument from directory and pathname (prefix space, add quotes).
#
def mk2arg(head, x):
+ from warnings import warnpy3k
+ warnpy3k("In 3.x, mk2arg has been removed.")
import os
return mkarg(os.path.join(head, x))
@@ -73,6 +77,8 @@ def mk2arg(head, x):
# with backslash.
#
def mkarg(x):
+ from warnings import warnpy3k
+ warnpy3k("in 3.x, mkarg has been removed.")
if '\'' not in x:
return ' \'' + x + '\''
s = ' "'