[GRASS-git] [OSGeo/grass] ca62de: utils: Remove HTMLParseError (#2524)
Vaclav Petras
noreply at github.com
Wed Feb 15 04:40:04 PST 2023
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: ca62de376a76b35a0536869655a90382237e54b8
https://github.com/OSGeo/grass/commit/ca62de376a76b35a0536869655a90382237e54b8
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2023-02-15 (Wed, 15 Feb 2023)
Changed paths:
M utils/g.html2man/g.html2man.py
M utils/g.html2man/ghtml.py
Log Message:
-----------
utils: Remove HTMLParseError (#2524)
HTMLParseError is just an alias for Exception. There is no HTMLParseError in Python 3. The error reporting fails because of access to attributes.
This completely removes HTMLParseError from HTML-man conversion code. The HTMLParseError included attributes about the error, but now the parsing is not strict anymore, so there is nothing to report.
Additionally, removes import code for Python 2.
More information about the grass-commit
mailing list