Skip to content

Only support python versions that receive security updates #580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
manually remove fallback imports
  • Loading branch information
Mic92 committed Sep 9, 2024
commit fb864a9e4ea393c3bd863de3f1c62275ce94f622
5 changes: 1 addition & 4 deletions html5lib/_trie/_base.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

try:
from collections.abc import Mapping
except ImportError: # Python 2.7
from collections.abc import Mapping
from collections.abc import Mapping


class Trie(Mapping):
Expand Down
5 changes: 1 addition & 4 deletions html5lib/_utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@

from types import ModuleType

try:
from collections.abc import Mapping
except ImportError:
from collections.abc import Mapping
from collections.abc import Mapping

from six import text_type, PY3

Expand Down
5 changes: 1 addition & 4 deletions html5lib/treebuilders/dom.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@


try:
from collections.abc import MutableMapping
except ImportError: # Python 2.7
from collections.abc import MutableMapping
from collections.abc import MutableMapping
from xml.dom import minidom, Node
import weakref

Expand Down
5 changes: 1 addition & 4 deletions html5lib/treebuilders/etree_lxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
import re
import sys

try:
from collections.abc import MutableMapping
except ImportError:
from collections.abc import MutableMapping
from collections.abc import MutableMapping

from . import base
from ..constants import DataLossWarning
Expand Down