Skip to content

Commit f9a13db

Browse files
committed
Fix more python 3 deprecations
1 parent 65a5be0 commit f9a13db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ipywidgets/widgets/interaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def update(self, *args):
246246
except Exception as e:
247247
ip = get_ipython()
248248
if ip is None:
249-
self.log.warn("Exception in interact callback: %s", e, exc_info=True)
249+
self.log.warning("Exception in interact callback: %s", e, exc_info=True)
250250
else:
251251
ip.showtraceback()
252252
finally:

ipywidgets/widgets/tests/test_interaction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ def test_iterable_tuple():
249249
check_widgets(c, lis=d)
250250

251251
def test_mapping():
252-
from collections import Mapping, OrderedDict
252+
from collections.abc import Mapping
253+
from collections import OrderedDict
253254
class TestMapping(Mapping):
254255
def __init__(self, values):
255256
self.values = values

0 commit comments

Comments
 (0)