Skip to content
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: 3 additions & 0 deletions flake8-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ fi

if [[ $FLAKE == "true" ]]; then
find html5lib/ -name '*.py' -and -not -name 'constants.py' -print0 | xargs -0 flake8 --ignore=E501
flake1=$?
flake8 --max-line-length=99 --ignore=E126 html5lib/constants.py
flake2=$?
exit $[$flake1 || $flake2]
fi
4 changes: 4 additions & 0 deletions html5lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import xml.etree.ElementTree as default_etree


__all__ = ["default_etree", "MethodDispatcher", "isSurrogatePair",
"surrogatePairToCodepoint", "moduleFactoryFactory"]


class MethodDispatcher(dict):
"""Dict with 2 special properties:

Expand Down