Skip to content

Commit 22e27a9

Browse files
xnoxpavlov99
authored andcommitted
Fix DeprecationWarning about collections.abc
1 parent 480d77e commit 22e27a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: jsonrpc/dispatcher.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
55
"""
66
import functools
7-
import collections
7+
try:
8+
from collections.abc import MutableMapping
9+
except ImportError:
10+
from collections import MutableMapping
811

912

10-
class Dispatcher(collections.MutableMapping):
13+
class Dispatcher(MutableMapping):
1114

1215
""" Dictionary like object which maps method_name to method."""
1316

0 commit comments

Comments
 (0)