Fix collections ABC deprecation warning.
This commit is contained in:
parent
2a68120d09
commit
98f233defd
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue