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: I24f62b02f292ce7a0bc21d4a39fc7787c87098ca
This commit is contained in:
ljhuang 2022-08-03 20:28:07 +08:00
parent cf2cf599d6
commit 54178936c4
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ class EventConsumer(h_base.EventHandler, metaclass=abc.ABCMeta):
def __init__(self):
super(EventConsumer, self).__init__()
@abc.abstractproperty
@property
@abc.abstractmethod
def consumes(self):
"""Predicates determining events supported by this handler.