Skip to content

Commit 36fe375

Browse files
authored
Merge pull request #2395 from flying-sheep/patch-1
Avoid DeprecationWarning
2 parents cfff9f6 + 83a06cb commit 36fe375

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ipywidgets/widgets/widget_selection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
Represents an enumeration using a widget.
77
"""
88

9-
from collections import Mapping, Iterable
9+
try:
10+
from collections.abc import Mapping, Iterable
11+
except ImportError: #python 2
12+
from collections import Mapping, Iterable
1013
try:
1114
from itertools import izip
1215
except ImportError: #python3.x

0 commit comments

Comments
 (0)