Skip to content

fix: replace deprecated pyparsing oneOf/leaveWhitespace with snake_case equivalents - #36

Merged
ldko merged 1 commit into
unt-libraries:masterfrom
tentwentyfour:feat/modernize
Jul 29, 2026
Merged

fix: replace deprecated pyparsing oneOf/leaveWhitespace with snake_case equivalents#36
ldko merged 1 commit into
unt-libraries:masterfrom
tentwentyfour:feat/modernize

Conversation

@kwisatz

@kwisatz kwisatz commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

pyparsing emits PyparsingDeprecationWarning for oneOf() and .leaveWhitespace() under Python 3.11 with modern pyparsing releases. Switch to the one_of() and leave_whitespace() names to silence the warnings without changing behavior.

…se equivalents

pyparsing emits PyparsingDeprecationWarning for oneOf() and .leaveWhitespace()
under Python 3.11 with modern pyparsing releases. Switch to the one_of() and
leave_whitespace() names to silence the warnings without changing behavior.
@ldko

ldko commented Jul 29, 2026

Copy link
Copy Markdown
Member

We need to update our testing versions etc., but the tests pass locally, looks good to me. Thanks for updating this to get rid of the deprecation warnings @kwisatz !

@ldko
ldko merged commit 7d7c5f2 into unt-libraries:master Jul 29, 2026
0 of 4 checks passed
@kwisatz

kwisatz commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

I updated the tests, but I realized too late that you had already merged the PR without them being up to date. But I can see they're still failing on my side, I'll create another PR once they pass.
(Hadn't turned actions on in my fork, which is why I hadn't noticed)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants