diff options
| author | ljhuang <huang.liujie@99cloud.net> | 2022-08-03 20:36:44 +0800 |
|---|---|---|
| committer | ljhuang <huang.liujie@99cloud.net> | 2022-08-03 20:36:44 +0800 |
| commit | 512e6aac47e1fc73837a16b24024081e1407220b (patch) | |
| tree | 82722bf31cb8b720323ce79b366990b1205f6123 | |
| parent | b8572209e7190fe718610382a3ac77becfd39522 (diff) | |
| download | kolla-512e6aac47e1fc73837a16b24024081e1407220b.tar.gz kolla-512e6aac47e1fc73837a16b24024081e1407220b.zip | |
Replace abc.abstractproperty with property and abc.abstractmethod
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: Ibb048b879fa58b5e144ae228628b3ffaeae65bbb
| -rw-r--r-- | kolla/common/task.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/common/task.py b/kolla/common/task.py index 5632423d5..3c9c9549d 100644 --- a/kolla/common/task.py +++ b/kolla/common/task.py @@ -18,7 +18,8 @@ class Task(object, metaclass=abc.ABCMeta): def __init__(self): self.success = False - @abc.abstractproperty + @property + @abc.abstractmethod def name(self): pass |
