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:
parent
c70d1f5c5a
commit
b7cae45fd7
@ -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-]+)\]$')
|
||||
|
Loading…
Reference in New Issue
Block a user