diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2020-08-14 11:56:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-14 11:56:13 +0200 |
| commit | a01c29cd82f5a717e8dee622002e1ca3e189f420 (patch) | |
| tree | c6653b7b278ccc8d8e2daf57d6bf13e8c64e3fcd /miasm/core/utils.py | |
| parent | 673392b248f2e69f4acb7c311d560c85ef0a85f1 (diff) | |
| parent | 01f3536e8ee31409f262f41a76604755acd7f9d7 (diff) | |
| download | focaccia-miasm-a01c29cd82f5a717e8dee622002e1ca3e189f420.tar.gz focaccia-miasm-a01c29cd82f5a717e8dee622002e1ca3e189f420.zip | |
Merge pull request #1253 from XVilka/fix-collections
Fix collections
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 ed630bde..cfe96de4 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 |