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

Add the private _is_printable_ascii function to simplify codes #3796

Merged
merged 5 commits into from
Feb 17, 2025

Conversation

seisman
Copy link
Member

@seisman seisman commented Feb 9, 2025

Description of proposed changes

Add _is_printable_ascii function to avoid duplicated codes like if all(32 <= ord(c) <= 126 for c in argstr):.

Cherry-picked from PR #3105 to make that PR smaller for reviewing.

@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels Feb 9, 2025
@seisman seisman added this to the 0.15.0 milestone Feb 9, 2025
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Feb 16, 2025
@seisman seisman requested a review from a team February 16, 2025 02:26
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Feb 17, 2025
@seisman seisman merged commit a6736ce into main Feb 17, 2025
20 of 23 checks passed
@seisman seisman deleted the is_printable_ascii branch February 17, 2025 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant