summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorljhuang <huang.liujie@99cloud.net>2022-08-03 20:33:08 +0800
committerljhuang <huang.liujie@99cloud.net>2022-08-03 20:33:08 +0800
commit7f3647bf9743ddfb47abc5981fc97653d5ecf09c (patch)
treed55e71145c38b85244ea22a9232319508e75f6e7
parent70a24fe4723dffb057bfb516cfc132661634b0d8 (diff)
downloadoslo-db-7f3647bf9743ddfb47abc5981fc97653d5ecf09c.tar.gz
Replace abc.abstractproperty with property and abc.abstractmethod12.1.0
Replace abc.abstractproperty with property and abc.abstractmethod, as abc.abstractproperty has been deprecated since python3.3[1] [1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc Change-Id: Id90fbd2c53fd49341043bde740500a857a4339d3
-rw-r--r--oslo_db/sqlalchemy/test_migrations.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/oslo_db/sqlalchemy/test_migrations.py b/oslo_db/sqlalchemy/test_migrations.py
index 74181db..a0b5591 100644
--- a/oslo_db/sqlalchemy/test_migrations.py
+++ b/oslo_db/sqlalchemy/test_migrations.py
@@ -77,7 +77,8 @@ class WalkVersionsMixin(object, metaclass=abc.ABCMeta):
"""
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def INIT_VERSION(self):
"""Initial version of a migration repository.
@@ -87,7 +88,8 @@ class WalkVersionsMixin(object, metaclass=abc.ABCMeta):
"""
pass
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def REPOSITORY(self):
"""Allows basic manipulation with migration repository.
@@ -95,7 +97,8 @@ class WalkVersionsMixin(object, metaclass=abc.ABCMeta):
"""
pass
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def migration_api(self):
"""Provides API for upgrading, downgrading and version manipulations.
@@ -103,7 +106,8 @@ class WalkVersionsMixin(object, metaclass=abc.ABCMeta):
"""
pass
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def migrate_engine(self):
"""Provides engine instance.