Package: nb2plots Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu jammy ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: * d/p/fix-collections-sequence-py310.patch: Use collections.abc.Sequence for Python 3.10. Thanks for considering the patch. -- System Information: Debian Release: bookworm/sid APT prefers jammy APT policy: (500, 'jammy') Architecture: amd64 (x86_64) Kernel: Linux 5.15.0-22-generic (SMP w/4 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru nb2plots-0.6/debian/patches/fix-collections-sequence-py310.patch nb2plots-0.6/debian/patches/fix-collections-sequence-py310.patch --- nb2plots-0.6/debian/patches/fix-collections-sequence-py310.patch 1969-12-31 19:00:00.000000000 -0500 +++ nb2plots-0.6/debian/patches/fix-collections-sequence-py310.patch 2022-03-25 09:05:48.000000000 -0400 @@ -0,0 +1,29 @@ +From 79234885fe50937cadd9291894f3f33a9b598672 Mon Sep 17 00:00:00 2001 +From: Jerry James <loganje...@gmail.com> +Date: Wed, 30 Oct 2019 08:28:50 -0600 +Subject: [PATCH] Import Sequence from either its new or its old location + +--- + nb2plots/nbplots.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/nb2plots/nbplots.py b/nb2plots/nbplots.py +index 0c459a9..2ad9c8f 100644 +--- a/nb2plots/nbplots.py ++++ b/nb2plots/nbplots.py +@@ -177,7 +177,11 @@ from __future__ import (absolute_import, division, print_function, + + import six + +-from collections import defaultdict, Sequence ++try: ++ from collections.abc import Sequence ++except ImportError: ++ from collections import Sequence ++from collections import defaultdict + import sys, os, shutil, io, re, textwrap + from os.path import (relpath, abspath, join as pjoin, dirname, exists, + basename, splitext, isdir) +-- +2.34.1 + diff -Nru nb2plots-0.6/debian/patches/series nb2plots-0.6/debian/patches/series --- nb2plots-0.6/debian/patches/series 1969-12-31 19:00:00.000000000 -0500 +++ nb2plots-0.6/debian/patches/series 2022-03-25 09:06:41.000000000 -0400 @@ -0,0 +1 @@ +fix-collections-sequence-py310.patch