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

fix: update re.split calls to use maxsplit keyword argument #4709

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

emmanuel-ferdman
Copy link
Contributor

@emmanuel-ferdman emmanuel-ferdman commented Jan 22, 2025

PR Summary

Fixes #4684

Starting from Python 3.13, using maxsplit as a positional argument in re.split is deprecated and will become keyword-only in future Python versions. Currently, this triggers the following warning:

DeprecationWarning: 'maxsplit' is passed as a positional argument

This PR updates the codebase to explicitly use maxsplit as a keyword argument. Didn't find other instances of positional maxsplit usage in the codebase.

For more information see the official Python docs.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Sorry about the delay @emmanuel-ferdman -- I was out sick. I think this looks good and I've triggered the tests to run. They'll need to pass before it'll merge.

@terriko terriko enabled auto-merge (squash) February 5, 2025 18:12
@terriko terriko merged commit e1c0bb2 into intel:main Feb 5, 2025
24 checks passed
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.

fix: address warnings in test_available_fix.py
2 participants