diff --git a/shifterator/helper.py b/shifterator/helper.py index c68730d..e189cad 100755 --- a/shifterator/helper.py +++ b/shifterator/helper.py @@ -1,4 +1,7 @@ -import collections +try: + from collections.abc import Mapping +except ImportError: + from collections import Mapping import pkgutil @@ -153,7 +156,7 @@ def get_score_dictionary(scores): type2score: dict Keys are types and values are scores of those types """ - if isinstance(scores, collections.Mapping): + if isinstance(scores, Mapping): return scores.copy(), None # Else, load scores from predefined score file in shifterator