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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emmanuel-ferdman
Copy link

@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.

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
1 participant