diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-09 14:48:19 +0900 |
---|---|---|
committer | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-09 17:01:25 +0000 |
commit | 23e647539cb9c6872d9f72de99c21e113fded77c (patch) | |
tree | cb1d066f225e328b664a6fa3dd73607fec181f9e /heatclient/common/format_utils.py | |
parent | a12456c17c5f43a35a54e605e89f74205be1e98e (diff) | |
download | python-heatclient-23e647539cb9c6872d9f72de99c21e113fded77c.tar.gz |
Remove six
This library no longer supports Python 2, thus usage of six can be
removed.
Change-Id: I8d0c1cfd6dff375b3b7756a5b36c95a2df3f04c6
Diffstat (limited to 'heatclient/common/format_utils.py')
-rw-r--r-- | heatclient/common/format_utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
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: |