From b3124bff7c08d0f9ae8f0754c91ef72a025bd574 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 15 Nov 2022 10:07:54 +0100 Subject: 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. --- lib/spack/llnl/util/tty/color.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/spack/llnl/util/tty/color.py') 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 -- cgit v1.2.3-60-g2f50