From 765f14a2dd18d4f8f097943d7969e75adc0d1922 Mon Sep 17 00:00:00 2001 From: "Jon.Erdman" Date: Thu, 10 Mar 2022 16:12:20 -0500 Subject: [PATCH] Update to collections module structure to support python 3.9+ --- mapper/casedict.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mapper/casedict.py b/mapper/casedict.py index b1cb499..20beedf 100644 --- a/mapper/casedict.py +++ b/mapper/casedict.py @@ -4,8 +4,12 @@ https://bitbucket.org/optiflowsrd/obelus/src/tip/obelus/casedict.py """ -from collections import MutableMapping +import sys +if sys.version_info[:2] >= (3, 8): + from collections.abc import MutableMapping +else: + from collections import MutableMapping _sentinel = object()