summaryrefslogtreecommitdiffstats
path: root/Doc/library/html.parser.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-11-02 15:08:24 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-11-02 15:08:24 (GMT)
commit88ebfb129b59dc8a2b855fc93fcf32457128d64d (patch)
treec1c3e6ab03e4c6431330402cabe40b8889353454 /Doc/library/html.parser.rst
parent28f0beaff692117a55ab919e87d336044935a0ab (diff)
downloadcpython-88ebfb129b59dc8a2b855fc93fcf32457128d64d.zip
cpython-88ebfb129b59dc8a2b855fc93fcf32457128d64d.tar.gz
cpython-88ebfb129b59dc8a2b855fc93fcf32457128d64d.tar.bz2
#15114: The html.parser module now raises a DeprecationWarning when the strict argument of HTMLParser or the HTMLParser.error method are used.
Diffstat (limited to 'Doc/library/html.parser.rst')
-rw-r--r--Doc/library/html.parser.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/html.parser.rst b/Doc/library/html.parser.rst
index e4154ef..0ea9644 100644
--- a/Doc/library/html.parser.rst
+++ b/Doc/library/html.parser.rst
@@ -74,7 +74,7 @@ as they are encountered::
def handle_data(self, data):
print("Encountered some data :", data)
- parser = MyHTMLParser(strict=False)
+ parser = MyHTMLParser()
parser.feed('<html><head><title>Test</title></head>'
'<body><h1>Parse me!</h1></body></html>')
@@ -272,7 +272,7 @@ examples::
def handle_decl(self, data):
print("Decl :", data)
- parser = MyHTMLParser(strict=False)
+ parser = MyHTMLParser()
Parsing a doctype::