edgewall / genshi

Python toolkit for generation of output for the web
http://genshi.edgewall.org
Other
86 stars 35 forks source link

Fix HTMLParser error handling. #87

Closed hodgestar closed 2 months ago

hodgestar commented 2 months ago

Genshi's HTMLParser referenced Python's html.HTMLParseError exception type in its try except clause. This exception class was deprecated in Python 3.3, removed in Python 3.5, and was not raised except in strict mode which, as far as I can tell from the version history, Genshi never used.

See https://docs.python.org/3.4/library/html.parser.html#html.parser.HTMLParseError.

Fixes #85.