summaryrefslogtreecommitdiff
path: root/trove/extensions/common/service.py
diff options
context:
space:
mode:
authorwangzihao <wangzihao@yovole.com>2020-10-16 10:40:22 +0800
committerwangzihao <wangzihao@yovole.com>2020-10-16 10:40:22 +0800
commite9541846936cec27b70f3975eba837cf938af21d (patch)
tree5f707da6fc9f7e61eeb888d1353116d464446b17 /trove/extensions/common/service.py
parent9e2515aad353c0ad6ced3558c6cc0fcd6d478fff (diff)
downloadtrove-e9541846936cec27b70f3975eba837cf938af21d.tar.gz
Remove six usage and basestring check
Remove basestring check. Remove six Replace the following items with Python 3 style code. - six.string_types - six.int2byte - six.indexbytes - six.add_metaclass - six.StringIO - six.text_type - six.integer_types - six.binary_type - six.BytesIO - six.reraise Change-Id: I4fb9033d152963c504ceb4d5c4d08f934ee4accb
Diffstat (limited to 'trove/extensions/common/service.py')
-rw-r--r--trove/extensions/common/service.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/trove/extensions/common/service.py b/trove/extensions/common/service.py
index d645de4d..42465ad5 100644
--- a/trove/extensions/common/service.py
+++ b/trove/extensions/common/service.py
@@ -19,7 +19,6 @@ import abc
from oslo_config.cfg import NoSuchOptError
from oslo_log import log as logging
from oslo_utils import importutils
-import six
from trove.cluster import models as cluster_models
from trove.cluster.models import DBCluster
@@ -62,8 +61,7 @@ class ExtensionController(wsgi.Controller):
{'tenant': target.tenant_id})
-@six.add_metaclass(abc.ABCMeta)
-class BaseDatastoreRootController(ExtensionController):
+class BaseDatastoreRootController(ExtensionController, metaclass=abc.ABCMeta):
"""Base class that defines the contract for root controllers."""
@abc.abstractmethod