summaryrefslogtreecommitdiff
path: root/oslo/db/sqlalchemy/compat/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo/db/sqlalchemy/compat/utils.py')
-rw-r--r--oslo/db/sqlalchemy/compat/utils.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/oslo/db/sqlalchemy/compat/utils.py b/oslo/db/sqlalchemy/compat/utils.py
index fa6c3e7..b910a16 100644
--- a/oslo/db/sqlalchemy/compat/utils.py
+++ b/oslo/db/sqlalchemy/compat/utils.py
@@ -1,3 +1,5 @@
+# All Rights Reserved.
+#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
@@ -9,18 +11,5 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import re
-
-import sqlalchemy
-
-
-_SQLA_VERSION = tuple(
- int(num) if re.match(r'^\d+$', num) else num
- for num in sqlalchemy.__version__.split(".")
-)
-sqla_100 = _SQLA_VERSION >= (1, 0, 0)
-sqla_097 = _SQLA_VERSION >= (0, 9, 7)
-sqla_094 = _SQLA_VERSION >= (0, 9, 4)
-sqla_090 = _SQLA_VERSION >= (0, 9, 0)
-sqla_08 = _SQLA_VERSION >= (0, 8)
+from oslo_db.sqlalchemy.compat.utils import * # noqa