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

DeprecationWarning: 'maxsplit' is passed as positional argument #150

Open
vaughanchandler opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@vaughanchandler
Copy link

With Python 3.13.0, Django 5.1.2 and django-widget-tweaks 1.5.0, running unit tests with python -Wa manage.py test --traceback is producing the following:

/usr/local/lib/python3.13/site-packages/widget_tweaks/templatetags/widget_tweaks.py:22: DeprecationWarning: 'maxsplit' is passed as positional argument
params = re.split(r"(?<!:):(?!:)", attr, 1)

From the "What’s New In Python 3.13" page:

re: Deprecate passing the optional maxsplit, count, or flags arguments as positional arguments to the module-level split(), sub(), and subn() functions. These parameters will become keyword-only in a future version of Python. (Contributed by Serhiy Storchaka in gh-56166.)

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

No branches or pull requests

1 participant