0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00

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
This commit is contained in:
Loic Teixeira 2020-07-19 13:34:40 +02:00 committed by Matt Westcott
parent c70d1f5c5a
commit b7cae45fd7

View File

@ -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-]+)\]$')