Missing my code line in warning (No parser was explicitly specified)

Bug #1574647 reported by Thomas Güttler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

We get this warnings:

WARNING /home/foo_guf_p/lib/python2.7/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
WARNING To get rid of this warning, change this:
WARNING BeautifulSoup([your markup])

It is very hard to find the line **of your source code** which calls bs4 without parser.

Please add the line above the warning line in the stacktrace to the warning.

In other words: Please show the upper line of the interpreter call stack.

Thank you.

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

Fixed in revision 402.

Changed in beautifulsoup:
status: New → Fix Committed
Revision history for this message
Thomas Güttler (hv-tbz-pariv) wrote :

I found no way to see the changes in revision 402 (fast and easy) ...

Nevertheless: Thank you very much, this helps new comers a lot.

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.