mirror of
https://github.com/python/cpython.git
synced 2025-10-04 22:20:46 +00:00
Merged revisions 72458 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72458 | philip.jenvey | 2009-05-07 19:28:39 -0700 (Thu, 07 May 2009) | 2 lines #4351: more appropriate DeprecationWarning stacklevels ........
This commit is contained in:
parent
476a64213f
commit
54cea3b1a5
9 changed files with 22 additions and 16 deletions
|
@ -33,7 +33,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))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue