Fix collections ABC deprecation warning.

This commit is contained in:
Denis Kasak 2019-01-09 15:01:56 +01:00
parent 2a68120d09
commit 98f233defd

View file

@ -28,9 +28,13 @@ import sys
# pylint: disable=redefined-builtin
from builtins import bytes, str
from collections import Iterable, Mapping
from functools import wraps
if sys.version_info.major == 3 and sys.version_info.minor >= 3:
from collections.abc import Iterable, Mapping
else:
from collections import Iterable, Mapping
# These functions were written by Trygve Aaberge for wee-slack and are under a
# MIT License.
# More info can be found in the wee-slack repository under the commit: