Import ABC from collections.abc for Python 3.9 compatibility.
This commit is contained in:
parent
4d5bf1c5c6
commit
882dfcefa5
3 changed files with 11 additions and 5 deletions
|
|
@ -3,3 +3,8 @@ try:
|
|||
except ImportError:
|
||||
# python 2.6 or earlier, use backport
|
||||
from ordereddict import OrderedDict # noqa
|
||||
|
||||
try:
|
||||
import collections.abc as collections_abc
|
||||
except ImportError:
|
||||
import collections as collections_abc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue