diff options
| author | Anton Kochkov <anton.kochkov@gmail.com> | 2020-06-10 16:27:48 +0800 |
|---|---|---|
| committer | Anton Kochkov <anton.kochkov@gmail.com> | 2020-06-15 18:11:49 +0800 |
| commit | 01f3536e8ee31409f262f41a76604755acd7f9d7 (patch) | |
| tree | f9efa287cecd0b3220b79a0545c3b0a078d7a1ac /miasm/core/utils.py | |
| parent | 975a527b4f268c4e41ab5ab259442c0941da6709 (diff) | |
| download | focaccia-miasm-01f3536e8ee31409f262f41a76604755acd7f9d7.tar.gz focaccia-miasm-01f3536e8ee31409f262f41a76604755acd7f9d7.zip | |
Fix collections deprecation warnings
Diffstat (limited to 'miasm/core/utils.py')
| -rw-r--r-- | miasm/core/utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/miasm/core/utils.py b/miasm/core/utils.py index 37248c40..da7050f7 100644 --- a/miasm/core/utils.py +++ b/miasm/core/utils.py @@ -3,7 +3,11 @@ import sys from builtins import range import struct import inspect -from collections import MutableMapping as DictMixin + +try: + from collections.abc import MutableMapping as DictMixin +except ImportError: + from collections import MutableMapping as DictMixin from operator import itemgetter import codecs |