Skip to content

gh-154335: Allow disabling terminal colors in Tachyon's pstats_collector module#154344

Open
pfackeldey wants to merge 2 commits into
python:mainfrom
pfackeldey:tachyon/fix_pstats_coloring
Open

gh-154335: Allow disabling terminal colors in Tachyon's pstats_collector module#154344
pfackeldey wants to merge 2 commits into
python:mainfrom
pfackeldey:tachyon/fix_pstats_coloring

Conversation

@pfackeldey

@pfackeldey pfackeldey commented Jul 21, 2026

Copy link
Copy Markdown

This PR uses _colorize.get_colors() instead of the _colorize.ANSIColors enum. That way, one can disable terminal coloring through ANSI escape codes with e.g. setting certain env vars, such as NO_COLOR=1.

I couldn't find an appropriate place for a test (and also I wasn't sure what's the best way to test this). Please let me know what your preference is regarding a test, and I'm happy to add it.

@pfackeldey
pfackeldey requested a review from pablogsal as a code owner July 21, 2026 10:32
@python-cla-bot

python-cla-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant