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

Avoid calling the deprecated "findAll" BeautifulSoup4 method #263

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

Tenzer
Copy link
Contributor

@Tenzer Tenzer commented Feb 3, 2025

The latest release of BeautifulSoup4 (4.13.0, released yesterday) has started to emit DeprecationWarnings when calling methods that have been marked as deprecated for over a decade, and the deprecated methods are scheduled to be removed in version 4.15.0: https://git.launchpad.net/beautifulsoup/commit/?id=e9629a8aafc737578bd509ffc6b989ffedae7c41.

This changes the one call to findAll to instead be find_all to avoid triggering a DeprecationWarning and to ensure the library keeps working with newer versions of BeautifulSoup4.

The latest release of BeautifulSoup4 (4.13.0, released yesterday) has started
to emit DeprecationWarnings when calling methods that have been marked as
deprecated for over a decade, and the deprecated methods are scheduled to be
removed in version 4.15.0:
https://git.launchpad.net/beautifulsoup/commit/?id=e9629a8aafc737578bd509ffc6b989ffedae7c41.

This changes the one call to `findAll` to instead be `find_all` to avoid
triggering a DeprecationWarning and to ensure the library keeps working with
newer versions of BeautifulSoup4.
@Tenzer
Copy link
Contributor Author

Tenzer commented Feb 3, 2025

I should point out, that I am not aware if this fixes all possible calls to deprecated methods in WebTest. This is just the one instance that is triggered a lot in our code base.

@gawel gawel merged commit 9a24ce9 into Pylons:main Feb 3, 2025
14 checks passed
@Tenzer Tenzer deleted the avoid-deprecated-bs4-method branch February 3, 2025 10:34
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