From 23e647539cb9c6872d9f72de99c21e113fded77c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 9 May 2022 14:48:19 +0900 Subject: Remove six This library no longer supports Python 2, thus usage of six can be removed. Change-Id: I8d0c1cfd6dff375b3b7756a5b36c95a2df3f04c6 --- heatclient/common/format_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'heatclient/common/format_utils.py') diff --git a/heatclient/common/format_utils.py b/heatclient/common/format_utils.py index d1a9206..598ae9e 100644 --- a/heatclient/common/format_utils.py +++ b/heatclient/common/format_utils.py @@ -15,7 +15,6 @@ import sys from osc_lib.command import command -import six class RawFormat(command.ShowOne): @@ -63,7 +62,7 @@ def indent_and_truncate(txt, spaces=0, truncate=False, truncate_limit=10, """ if txt is None: return - lines = six.text_type(txt).splitlines() + lines = str(txt).splitlines() if truncate and len(lines) > truncate_limit: lines = lines[-truncate_limit:] if truncate_prefix is not None: -- cgit v1.2.1