Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 3 Lib/xml/etree/ElementTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,8 @@ class XMLParser:
def __init__(self, html=_sentinel, target=None, encoding=None):
if html is not _sentinel:
warnings.warn(
"The html argument of XMLParser() is deprecated",
"The html argument of XMLParser() is deprecated since 3.4"
" and will be ignored.",
DeprecationWarning, stacklevel=2)
try:
from xml.parsers import expat
Expand Down
3 changes: 2 additions & 1 deletion 3 Modules/_elementtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3282,7 +3282,8 @@ _elementtree_XMLParser___init___impl(XMLParserObject *self, PyObject *html,
{
if (html != NULL) {
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"The html argument of XMLParser() is deprecated",
"The html argument of XMLParser() is deprecated since"
" 3.4 and will be ignored.",
1) < 0) {
return -1;
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.