Merge pull request #20 from dkasak/olm-command

Fix collections ABC deprecation warning.
This commit is contained in:
poljar 2019-01-09 15:14:57 +01:00 committed by GitHub
commit 5b6fc50877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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