diff --git a/boltons/deprutils.py b/boltons/deprutils.py index e4571d4..d3029c8 100644 --- a/boltons/deprutils.py +++ b/boltons/deprutils.py @@ -23,7 +23,7 @@ class DeprecatableModule(ModuleType): ret = get_attribute(name) message = depros.get(name) if message is not None: - warn(message, DeprecationWarning) + warn(message, DeprecationWarning, stacklevel=2) return ret