diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 02:28:39 +0000 |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 02:28:39 +0000 |
commit | d846f1d4c21f4589966512f78a4a4d74f8399d6d (patch) | |
tree | b0133d10453f7707201fa5328cd9ddd14e13a6ba /Lib/commands.py | |
parent | 6f9977852ff61be2f55f82bbdb92e486c23d2dd9 (diff) | |
download | cpython-git-d846f1d4c21f4589966512f78a4a4d74f8399d6d.tar.gz |
#4351: more appropriate DeprecationWarning stacklevels
Diffstat (limited to 'Lib/commands.py')
-rw-r--r-- | Lib/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/commands.py b/Lib/commands.py index ccaaaee6ff..d0e8dd5fe9 100644 --- a/Lib/commands.py +++ b/Lib/commands.py @@ -37,7 +37,7 @@ __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) + warnings.warn("commands.getstatus() is deprecated", DeprecationWarning, 2) return getoutput('ls -ld' + mkarg(file)) |