From b7cae45fd70edb43efb996714c864844c2b06575 Mon Sep 17 00:00:00 2001 From: Loic Teixeira Date: Sun, 19 Jul 2020 13:34:40 +0200 Subject: [PATCH] Fix Python 3.9 Deprecation Warning > DeprecationWarning: Using or importing the ABCs from 'collections' > instead of from 'collections.abc' is deprecated since Python 3.3, > and in 3.9 it will stop working --- wagtail/admin/rich_text/converters/html_ruleset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/admin/rich_text/converters/html_ruleset.py b/wagtail/admin/rich_text/converters/html_ruleset.py index 6e97229d1a..48d5d401ef 100644 --- a/wagtail/admin/rich_text/converters/html_ruleset.py +++ b/wagtail/admin/rich_text/converters/html_ruleset.py @@ -1,5 +1,5 @@ import re -from collections import Mapping +from collections.abc import Mapping ELEMENT_SELECTOR = re.compile(r'^([\w-]+)$') ELEMENT_WITH_ATTR_SELECTOR = re.compile(r'^([\w-]+)\[([\w-]+)\]$')