python3: Update for metaclasses
Use six.with_metaclass to create a new class with a base class base and metaclass metaclass. Change-Id: Id1e70f8cae0ac3dd075157f57d41a02b15e655f4 Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
parent
9ab7cdcef9
commit
046ea37f93
@ -166,11 +166,10 @@ class Manager(utils.HookableMixin):
|
||||
return body
|
||||
|
||||
|
||||
class ManagerWithFind(Manager):
|
||||
class ManagerWithFind(six.with_metaclass(abc.ABCMeta, Manager)):
|
||||
"""
|
||||
Like a `Manager`, but with additional `find()`/`findall()` methods.
|
||||
"""
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
@abc.abstractmethod
|
||||
def list(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user