Skip to content
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

[cleanup] deprecate sphinx.testing.util.strip_escseq in favor of sphinx.util.console.strip_colors. #12186

Merged
merged 11 commits into from
Mar 23, 2024

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Mar 23, 2024

The sphinx.testing.util.strip_escseq did not exactly do what its name meant, namely it only stripped ANSI color codes but not all possible ANSI codes. If in the future we must strip ANSI control sequences in general, we should make the current sphinx.util.console._strip_escape_sequences function public, but for now it is not planned.

I took the liberty of having Final objects at module level to avoid modifying them by accident (even though they are private).

@picnixz picnixz requested a review from jayaddison March 23, 2024 22:32
Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeh all good

@picnixz picnixz merged commit f24eef7 into sphinx-doc:master Mar 23, 2024
22 checks passed
@picnixz picnixz deleted the deprecate/strip_escseq branch March 23, 2024 23:43
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants