diff options
Diffstat (limited to 'Lib/commands.py')
-rw-r--r-- | Lib/commands.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Lib/commands.py b/Lib/commands.py index d19aa1a..ee4db85 100644 --- a/Lib/commands.py +++ b/Lib/commands.py @@ -19,7 +19,7 @@ Encapsulates the basic operation: [Note: it would be nice to add functions to interpret the exit status.] """ -__all__ = ["getstatusoutput","getoutput","getstatus"] +__all__ = ["getstatusoutput", "getoutput"] # Module 'commands' # @@ -28,15 +28,6 @@ __all__ = ["getstatusoutput","getoutput","getstatus"] # NB This only works (and is only relevant) for UNIX. -# Get 'ls -l' status for an object into a string -# -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)) - - # Get the output from a shell command into a string. # The exit status is ignored; a trailing newline is stripped. # Assume the command will work with '{ ... ; } 2>&1' around it.. |