Skip to content

Commit 4cc7ff2

Browse files
authored
Update convoKitMeta.py
Fix the error that arises when using deprecated `from collections import MutableMapping`.
1 parent 63cde18 commit 4cc7ff2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

convokit/model/convoKitMeta.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from collections import MutableMapping
1+
try:
2+
from collections.abc import MutableMapping
3+
except:
4+
from collections import MutableMapping
25
from convokit.util import warn
36
from .convoKitIndex import ConvoKitIndex
47
import json

0 commit comments

Comments
 (0)