Add deprecation warnings for all deprecated names

Bug #2016170 reported by Leonard Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Committed
Undecided
Unassigned

Bug Description

Beautiful Soup is full of deprecated names, some of which have been deprecated but silently working for 15 years. Without an actual DeprecationWarning being issued, developers will continue to use these very old names.

Start issuing DeprecationWarning for every deprecated name, and mention the version when the deprecation happened. That will allow a strategy for removing the deprecated names altogether.

Revision history for this message
Leonard Richardson (leonardr) wrote :

This is done in the 4.13 development branch. Attached is a script I ran to trigger each of the 31 warnings I've added.

Changed in beautifulsoup:
status: New → Fix Committed
Revision history for this message
Florian Schulze (florian-schulze) wrote :

I tried the 4.13 branch and after some fixes (https://bugs.launchpad.net/beautifulsoup/+bug/1843791) the warnings are working well for me. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.