diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2024-04-24 14:27:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 14:27:40 +0300 |
commit | 975081b11e052c9f8deb42c5876104651736302e (patch) | |
tree | 67c2c3ce98bf9489ecc072795fed7182b2247cfe /Lib/traceback.py | |
parent | f6e5cc66bef74346b4a6490f9d0c623e7a736e03 (diff) | |
download | cpython-975081b11e052c9f8deb42c5876104651736302e.tar.gz cpython-975081b11e052c9f8deb42c5876104651736302e.zip |
gh-117225: Add color to doctest output (#117583)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index d27c7a726d2..054def57c21 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -448,8 +448,12 @@ class _ANSIColors: BOLD_RED = '\x1b[1;31m' MAGENTA = '\x1b[35m' BOLD_MAGENTA = '\x1b[1;35m' + GREEN = "\x1b[32m" + BOLD_GREEN = "\x1b[1;32m" GREY = '\x1b[90m' RESET = '\x1b[0m' + YELLOW = "\x1b[33m" + class StackSummary(list): """A list of FrameSummary objects, representing a stack of frames.""" |