diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-15 19:58:54 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-15 19:58:54 -0400 |
commit | 25f13ea57a53b04866f1c3a0a961c951812bdb43 (patch) | |
tree | b862a7e83ac02601d605f4cc335fbecbe4f29bcc | |
parent | 9ccb56080758c5056b5af308af8dec0ac2fe5568 (diff) | |
download | external_python_setuptools-25f13ea57a53b04866f1c3a0a961c951812bdb43.tar.gz external_python_setuptools-25f13ea57a53b04866f1c3a0a961c951812bdb43.tar.bz2 external_python_setuptools-25f13ea57a53b04866f1c3a0a961c951812bdb43.zip |
Set stacklevel on DeprecationWarning for more relevant locality.
-rw-r--r-- | setuptools/dist.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 9dbf04ba..5c84b8d4 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -808,9 +808,12 @@ class Feature: @staticmethod def warn_deprecated(): - warnings.warn("Features are deprecated and will be removed in " - "a future version. See http://bitbucket.org/pypa/setuptools/65.", - DeprecationWarning) + warnings.warn( + "Features are deprecated and will be removed in a future " + "version. See http://bitbucket.org/pypa/setuptools/65.", + DeprecationWarning, + stacklevel=3, + ) def __init__(self, description, standard=False, available=True, optional=True, require_features=(), remove=(), **extras |