Use 'six' instead of oslo_utils.strutils.six
'six' is an independent third party module so it doesn't need to be imported and used from oslo_utils.strutils. TrivialFix Change-Id: Icb3232bb1ebae0e8332e66c5806474d7f9dfd6df
This commit is contained in:
@@ -43,7 +43,7 @@ from keystoneauth1.exceptions import DiscoveryFailure
|
||||
import six.moves.urllib.parse as urlparse
|
||||
from oslo_utils import encodeutils
|
||||
from oslo_utils import importutils
|
||||
from oslo_utils import strutils
|
||||
import six
|
||||
|
||||
osprofiler_profiler = importutils.try_import("osprofiler.profiler")
|
||||
|
||||
@@ -884,7 +884,7 @@ def main():
|
||||
sys.exit(130)
|
||||
except Exception as e:
|
||||
logger.debug(e, exc_info=1)
|
||||
print("ERROR: %s" % strutils.six.text_type(e), file=sys.stderr)
|
||||
print("ERROR: %s" % six.text_type(e), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user