summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exc.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-04-10 17:52:47 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-04-10 17:52:47 +0000
commit1ff644d2f16a7517df7f175e1291ddaa501646dd (patch)
treea8f6e624e1500f3b77e43a22eaeb0e7b8ff20100 /lib/sqlalchemy/exc.py
parentfe591913030a244a9ccfdd47b371609f1f1b44af (diff)
parenta9b068ae564e5e775e312373088545b75aeaa1b0 (diff)
downloadsqlalchemy-1ff644d2f16a7517df7f175e1291ddaa501646dd.tar.gz
Merge "Remove code deprecated before version 1.1"
Diffstat (limited to 'lib/sqlalchemy/exc.py')
-rw-r--r--lib/sqlalchemy/exc.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exc.py b/lib/sqlalchemy/exc.py
index cc096ad03..a6da844dc 100644
--- a/lib/sqlalchemy/exc.py
+++ b/lib/sqlalchemy/exc.py
@@ -589,6 +589,9 @@ class NotSupportedError(DatabaseError):
class SADeprecationWarning(DeprecationWarning):
"""Issued for usage of deprecated APIs."""
+ deprecated_since = None
+ "Indicates the version that started raising this deprecation warning"
+
class RemovedIn20Warning(SADeprecationWarning):
"""Issued for usage of APIs specifically deprecated in SQLAlchemy 2.0.
@@ -599,6 +602,9 @@ class RemovedIn20Warning(SADeprecationWarning):
"""
+ deprecated_since = "1.4"
+ "Indicates the version that started raising this deprecation warning"
+
class SAPendingDeprecationWarning(PendingDeprecationWarning):
"""A similar warning as :class:`.SADeprecationWarning`, this warning
@@ -606,6 +612,9 @@ class SAPendingDeprecationWarning(PendingDeprecationWarning):
"""
+ deprecated_since = None
+ "Indicates the version that started raising this deprecation warning"
+
class SAWarning(RuntimeWarning):
"""Issued at runtime."""