Open pejobo opened 2 years ago
I know the plugin is currently broken due to changes on the subscene website (see #9 and #8) what is really sad.
But if this is fixed the plugin is also currently broken for python 3.10 or newer because the types
Mappings
andMutableMapping
now only sit in packagecollections.abc
, not incollections
.The fix is small, just use these snippet for importin:
try: from collections import Mapping except ImportError: from collections.abc import Mapping
(for file
lib/html5lib/_trie/_base.py
)try: from collections import MutableMapping except ImportError: from collections.abc import MutableMapping
(for file
lib/html5lib/treebuilders/dom.py
)Maybe you can incorporate these changes when updating the plugin.
Can you provide a complete file?
I know the plugin is currently broken due to changes on the subscene website (see #9 and #8) what is really sad.
But if this is fixed the plugin is also currently broken for python 3.10 or newer because the types
Mappings
andMutableMapping
now only sit in packagecollections.abc
, not incollections
.The fix is small, just use these snippet for importin:
(for file
lib/html5lib/_trie/_base.py
)(for file
lib/html5lib/treebuilders/dom.py
)Maybe you can incorporate these changes when updating the plugin.