diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-11-15 10:07:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 10:07:54 +0100 |
commit | b3124bff7c08d0f9ae8f0754c91ef72a025bd574 (patch) | |
tree | 9dd90f611ccfd054a1499d7168210014798356f0 /lib/spack/llnl/util/tty/color.py | |
parent | 5c4137baf19b9e271a2f13e886d6b875aab067dd (diff) | |
download | spack-b3124bff7c08d0f9ae8f0754c91ef72a025bd574.tar.gz spack-b3124bff7c08d0f9ae8f0754c91ef72a025bd574.tar.bz2 spack-b3124bff7c08d0f9ae8f0754c91ef72a025bd574.tar.xz spack-b3124bff7c08d0f9ae8f0754c91ef72a025bd574.zip |
Stop using `six` in Spack (#33905)
Since we dropped support for Python 2.7, there's no need
so use `six` anymore. We still need to vendor it until
we update our vendored dependencies.
Diffstat (limited to 'lib/spack/llnl/util/tty/color.py')
-rw-r--r-- | lib/spack/llnl/util/tty/color.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/spack/llnl/util/tty/color.py b/lib/spack/llnl/util/tty/color.py index ad6862fc28..83e8316914 100644 --- a/lib/spack/llnl/util/tty/color.py +++ b/lib/spack/llnl/util/tty/color.py @@ -65,8 +65,6 @@ import re import sys from contextlib import contextmanager -import six - class ColorParseError(Exception): """Raised when a color format fails to parse.""" @@ -259,7 +257,7 @@ def cescape(string): Returns: (str): the string with color codes escaped """ - string = six.text_type(string) + string = str(string) string = string.replace("@", "@@") string = string.replace("}", "}}") return string |