remove six module in venus/openstack/common/config/generator.py

Change-Id: Ia709cd5cb0b9a6a737256b747ec50c7c01b17205
This commit is contained in:
kuangcx 2020-12-25 00:13:00 -08:00
parent 5c82831587
commit 8ac3d6b044

View File

@ -26,7 +26,6 @@ import textwrap
from oslo_config import cfg
from oslo_utils import importutils
import six
from venus.openstack.common import gettextutils
@ -245,7 +244,7 @@ def _print_opt(opt):
if opt_default is None:
print('#%s=<None>' % opt_name)
elif opt_type == STROPT:
assert(isinstance(opt_default, six.string_types))
assert(isinstance(opt_default, str))
print('#%s=%s' % (opt_name, _sanitize_default(opt_name,
opt_default)))
elif opt_type == BOOLOPT: