Package: ipywidgets Version: 6.0.0-8 Followup-For: Bug #1001343 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu jammy ubuntu-patch Control: tags -1 patch
Please find attached a trivial patch for this issue. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru ipywidgets-6.0.0/debian/patches/python-3.10.patch ipywidgets-6.0.0/debian/patches/python-3.10.patch --- ipywidgets-6.0.0/debian/patches/python-3.10.patch 1969-12-31 16:00:00.000000000 -0800 +++ ipywidgets-6.0.0/debian/patches/python-3.10.patch 2021-12-10 15:19:17.000000000 -0800 @@ -0,0 +1,32 @@ +Description: compatibility with python 3.10 +Author: Steve Langasek <steve.langa...@ubuntu.com> +Bug-Debian: https://bugs.debian.org/1001343 +Last-Update: 2021-12-10 +Forwarded: no + +Index: ipywidgets-6.0.0/ipywidgets/widgets/widget_selection.py +=================================================================== +--- ipywidgets-6.0.0.orig/ipywidgets/widgets/widget_selection.py ++++ ipywidgets-6.0.0/ipywidgets/widgets/widget_selection.py +@@ -6,7 +6,7 @@ + Represents an enumeration using a widget. + """ + +-from collections import Mapping ++from collections.abc import Mapping + try: + from itertools import izip + except ImportError: #python3.x +Index: ipywidgets-6.0.0/ipywidgets/widgets/interaction.py +=================================================================== +--- ipywidgets-6.0.0.orig/ipywidgets/widgets/interaction.py ++++ ipywidgets-6.0.0/ipywidgets/widgets/interaction.py +@@ -26,7 +26,7 @@ + from traitlets import HasTraits, Any, Unicode, observe + from numbers import Real, Integral + from warnings import warn +-from collections import Iterable, Mapping ++from collections.abc import Iterable, Mapping + + empty = Parameter.empty + diff -Nru ipywidgets-6.0.0/debian/patches/series ipywidgets-6.0.0/debian/patches/series --- ipywidgets-6.0.0/debian/patches/series 2021-02-09 01:00:09.000000000 -0800 +++ ipywidgets-6.0.0/debian/patches/series 2021-12-10 15:18:02.000000000 -0800 @@ -7,3 +7,4 @@ 0009-Webpack-4-compatibility.patch 0011-Simplify-sphinx-build.patch 0012-Javascript-not-detected-hint.patch +python-3.10.patch