Skip to content

Add the private _is_printable_ascii function to simplify codes - #3796

Merged
seisman merged 5 commits into
mainfrom
is_printable_ascii
Feb 17, 2025
Merged

Add the private _is_printable_ascii function to simplify codes#3796
seisman merged 5 commits into
mainfrom
is_printable_ascii

Conversation

@seisman

@seismanseisman commented Feb 9, 2025

Copy link
Copy Markdown
Member

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.

@seismanseisman 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
@seismanseisman added this to the 0.15.0 milestone Feb 9, 2025
@seismanseisman 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 teamFebruary 16, 2025 02:26
@seismanseisman 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 mainFeb 17, 2025
@seisman
seisman deleted the is_printable_ascii branch February 17, 2025 06:35
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenanceBoring but important stuff for the core devsskip-changelogSkip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@seisman