-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Empty values of FORCE_COLOR and NO_COLOR are not ignored #129061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Comments
cc @hugovk |
See also earlier discussion: #128318 (comment) |
Please see PR #129140. |
hugovk
added a commit
that referenced
this issue
Jan 27, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 27, 2025
…ythonGH-129140) (cherry picked from commit 9546fe2) Co-authored-by: Hugo van Kemenade <[email protected]>
hugovk
added a commit
that referenced
this issue
Jan 27, 2025
…GH-129140) (#129360) gh-129061: Fix `FORCE_COLOR` and `NO_COLOR` when empty strings (GH-129140) (cherry picked from commit 9546fe2) Co-authored-by: Hugo van Kemenade <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
https://no-color.org/
https://force-color.org/
Both "standards" state that these environment variables has only effect if their value is not an empty string. But Python currently only tests that the environment variables are defined.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
FORCE_COLOR
andNO_COLOR
when empty strings #129140FORCE_COLOR
andNO_COLOR
when empty strings (GH-129140) #129360The text was updated successfully, but these errors were encountered: