summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-15 19:58:54 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-08-15 19:58:54 -0400
commit09ed1cab20b280fa6f76ccd9cf1d2bb21f0b1e24 (patch)
treec5a3fa4ae4e1580f457b4810cd0719f54b8f45df
parent88c22090f4c2857d66bda7a0f0639362d60b1e79 (diff)
downloadpython-setuptools-bitbucket-09ed1cab20b280fa6f76ccd9cf1d2bb21f0b1e24.tar.gz
Set stacklevel on DeprecationWarning for more relevant locality.
-rw-r--r--setuptools/dist.py9
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