DeprecationWarning about strict argument and mode, value of convert_charrefs

Bug #1341055 reported by lonf
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

I'm getting these warnings while using bs4 in a unittest module:

Warning (from warnings module):
  File "C:\Python34\lib\site-packages\bs4\builder\_htmlparser.py", line 157
    parser = BeautifulSoupHTMLParser(*args, **kwargs)
DeprecationWarning: The strict argument and mode are deprecated.

Warning (from warnings module):
  File "C:\Python34\lib\site-packages\bs4\builder\_htmlparser.py", line 157
    parser = BeautifulSoupHTMLParser(*args, **kwargs)
DeprecationWarning: The value of convert_charrefs will become True in 3.5. You are encouraged to set the value explicitly.

(I'm using python 3.4.1 and these are probably due to changes in html.parser in python 3.4.)

Revision history for this message
robitaille (thomas-robitaille) wrote :

I'm also seeing this with Python 3.4. Here is a log of a simple Travis CI job to reproduce the issue:

https://travis-ci.org/astrofrog/test_bs4/builds/48235458

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

Bug 1375721 deals with the convert_charrefs warning.

I don't understand how you can get a deprecation warning for 'strict' in 3.4, since it should only be in use in 3.3, but I've added another check to make sure it doesn't happen. The revision number is 362.

Changed in beautifulsoup:
status: New → Fix Committed
Changed in beautifulsoup:
status: Fix Committed → Fix Released
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.