diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2023-07-05 07:37:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 14:37:44 +0200 |
commit | 95847a0b373d1fe55772ff39d58aa616bec88932 (patch) | |
tree | 742c3a2620c474d418c57ed14fd2e3207988d448 /lib/spack/llnl/util/tty/color.py | |
parent | 8861fe029426649c15f273575e5d7e260c2febc6 (diff) | |
download | spack-95847a0b373d1fe55772ff39d58aa616bec88932.tar.gz spack-95847a0b373d1fe55772ff39d58aa616bec88932.tar.bz2 spack-95847a0b373d1fe55772ff39d58aa616bec88932.tar.xz spack-95847a0b373d1fe55772ff39d58aa616bec88932.zip |
Drop Python 2 object subclassing (#38720)
Diffstat (limited to 'lib/spack/llnl/util/tty/color.py')
-rw-r--r-- | lib/spack/llnl/util/tty/color.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/llnl/util/tty/color.py b/lib/spack/llnl/util/tty/color.py index 0f508f0d06..84344a7ae7 100644 --- a/lib/spack/llnl/util/tty/color.py +++ b/lib/spack/llnl/util/tty/color.py @@ -203,7 +203,7 @@ def color_when(value): set_color_when(old_value) -class match_to_ansi(object): +class match_to_ansi: def __init__(self, color=True, enclose=False): self.color = _color_when_value(color) self.enclose = enclose @@ -319,7 +319,7 @@ def cescape(string): return string -class ColorStream(object): +class ColorStream: def __init__(self, stream, color=None): self._stream = stream self._color = color |