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:
parent
b8572209e7
commit
512e6aac47
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue