Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb7b753

Browse files
committed
Add missing versionchanged, correct 'throw' wording to 'raise'.
1 parent b579dba commit bb7b753

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/html.parser.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML.
2727
This parser does not check that end tags match start tags or call the end-tag
2828
handler for elements which are closed implicitly by closing an outer element.
2929

30+
.. versionchanged:: 3.2 *strict* keyword added
31+
3032
An exception is defined as well:
3133

3234

@@ -197,6 +199,6 @@ As a basic example, below is a very basic HTML parser that uses the
197199

198200
.. rubric:: Footnotes
199201

200-
.. [#] For backward compatibility reasons *strict* mode does not throw
201-
errors for all non-compliant HTML. That is, some invalid HTML
202+
.. [#] For backward compatibility reasons *strict* mode does not raise
203+
exceptions for all non-compliant HTML. That is, some invalid HTML
202204
is tolerated even in *strict* mode.

0 commit comments

Comments
 (0)