summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r--lib/sqlalchemy/util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py
index d0027ebc4..a9e7d2238 100644
--- a/lib/sqlalchemy/util.py
+++ b/lib/sqlalchemy/util.py
@@ -1405,6 +1405,9 @@ def warn(msg):
def warn_deprecated(msg):
warnings.warn(msg, exc.SADeprecationWarning, stacklevel=3)
+def warn_pending_deprecation(msg):
+ warnings.warn(msg, exc.SAPendingDeprecationWarning, stacklevel=3)
+
def deprecated(message=None, add_deprecation_to_docstring=True):
"""Decorates a function and issues a deprecation warning on use.