Import ABC from collections.abc for Python 3.9 compatibility.

This commit is contained in:
Karthikeyan Singaravelan 2019-12-10 19:21:13 +05:30
commit 882dfcefa5
3 changed files with 11 additions and 5 deletions

View file

@ -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