Py3: Remove six
Remove six.add_metaclass usage in taas code. Change-Id: I73bb6d75b6608ad8fed05bc54f497abb1ca50ff1
This commit is contained in:
parent
1ff8830e5c
commit
fc72381ad6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user