From 4cc7ff22c1402be3be16781d459252e48e0c7f81 Mon Sep 17 00:00:00 2001 From: Khonzoda Umarova <26072772+Khonzoda@users.noreply.github.com> Date: Sun, 16 Jan 2022 22:42:36 -0600 Subject: [PATCH] Update convoKitMeta.py Fix the error that arises when using deprecated `from collections import MutableMapping`. --- convokit/model/convoKitMeta.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/convokit/model/convoKitMeta.py b/convokit/model/convoKitMeta.py index 5e8a5c1a..e8e4eff2 100644 --- a/convokit/model/convoKitMeta.py +++ b/convokit/model/convoKitMeta.py @@ -1,4 +1,7 @@ -from collections import MutableMapping +try: + from collections.abc import MutableMapping +except: + from collections import MutableMapping from convokit.util import warn from .convoKitIndex import ConvoKitIndex import json