Skip to content

Commit

Permalink
Fix more python 3 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Dec 31, 2019
1 parent 65a5be0 commit f9a13db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipywidgets/widgets/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def update(self, *args):
except Exception as e:
ip = get_ipython()
if ip is None:
self.log.warn("Exception in interact callback: %s", e, exc_info=True)
self.log.warning("Exception in interact callback: %s", e, exc_info=True)
else:
ip.showtraceback()
finally:
Expand Down
3 changes: 2 additions & 1 deletion ipywidgets/widgets/tests/test_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def test_iterable_tuple():
check_widgets(c, lis=d)

def test_mapping():
from collections import Mapping, OrderedDict
from collections.abc import Mapping
from collections import OrderedDict
class TestMapping(Mapping):
def __init__(self, values):
self.values = values
Expand Down

0 comments on commit f9a13db

Please sign in to comment.