diff --git a/shifterator/helper.py b/shifterator/helper.py index c68730d..8a4652e 100755 --- a/shifterator/helper.py +++ b/shifterator/helper.py @@ -153,7 +153,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, collections.abc.Mapping): return scores.copy(), None # Else, load scores from predefined score file in shifterator