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 | 09ed1cab20b280fa6f76ccd9cf1d2bb21f0b1e24 (patch) | |
| tree | c5a3fa4ae4e1580f457b4810cd0719f54b8f45df | |
| parent | 88c22090f4c2857d66bda7a0f0639362d60b1e79 (diff) | |
| download | python-setuptools-bitbucket-09ed1cab20b280fa6f76ccd9cf1d2bb21f0b1e24.tar.gz | |
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 |
