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
This commit is contained in:
ljhuang 2022-08-03 20:36:44 +08:00
parent b8572209e7
commit 512e6aac47
1 changed files with 2 additions and 1 deletions

View File

@ -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