Py3: Remove six

Remove six.add_metaclass usage in taas code.

Change-Id: I73bb6d75b6608ad8fed05bc54f497abb1ca50ff1
This commit is contained in:
elajkat 2022-06-20 15:50:49 +02:00 committed by Lajos Katona
parent 1ff8830e5c
commit fc72381ad6
3 changed files with 3 additions and 11 deletions

View File

@ -23,8 +23,6 @@ from neutron.api.v2 import resource_helper
from neutron_taas.common import config
import six
config.register()
@ -53,8 +51,7 @@ class Taas(extensions.APIExtensionDescriptor):
return TaasPluginBase
@six.add_metaclass(abc.ABCMeta)
class TaasPluginBase(service_base.ServicePluginBase):
class TaasPluginBase(service_base.ServicePluginBase, metaclass=abc.ABCMeta):
def get_plugin_description(self):
return taas_api_def.DESCRIPTION

View File

@ -14,7 +14,6 @@
# limitations under the License.
import abc
import six
from neutron_lib.agent import l2_extension
@ -35,8 +34,7 @@ OPTS = [
cfg.CONF.register_opts(OPTS)
@six.add_metaclass(abc.ABCMeta)
class TaasAgentDriver(object):
class TaasAgentDriver(object, metaclass=abc.ABCMeta):
"""Defines stable abstract interface for TaaS Agent Driver."""
@abc.abstractmethod

View File

@ -14,11 +14,8 @@
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class TaasBaseDriver(object):
class TaasBaseDriver(object, metaclass=abc.ABCMeta):
def __init__(self, service_plugin):
self.service_plugin = service_plugin