Codebase list nb2plots / 53c5c1f
import upstream PR to import Sequence properly; Closes: #1008261 Sandro Tosi 2 years ago
3 changed file(s) with 30 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
99 - extend packaging copyright years
1010 * debian/control
1111 - bump Standards-Version to 4.6.0.1 (no changes needed)
12 * debian/patches/PR14.patch
13 - import upstream PR to import Sequence properly; Closes: #1008261
1214
1315 [ Debian Janitor ]
1416 * Bump debhelper from deprecated 9 to 13.
1820 * Remove constraints unnecessary since buster:
1921 + Build-Depends: Drop versioned constraint on python3-six.
2022
21 -- Sandro Tosi <morph@debian.org> Wed, 04 May 2022 22:04:25 -0400
23 -- Sandro Tosi <morph@debian.org> Wed, 04 May 2022 22:08:36 -0400
2224
2325 nb2plots (0.6-2) unstable; urgency=medium
2426
0 From 79234885fe50937cadd9291894f3f33a9b598672 Mon Sep 17 00:00:00 2001
1 From: Jerry James <loganjerry@gmail.com>
2 Date: Wed, 30 Oct 2019 08:28:50 -0600
3 Subject: [PATCH] Import Sequence from either its new or its old location
4
5 ---
6 nb2plots/nbplots.py | 6 +++++-
7 1 file changed, 5 insertions(+), 1 deletion(-)
8
9 diff --git a/nb2plots/nbplots.py b/nb2plots/nbplots.py
10 index 0c459a9..2ad9c8f 100644
11 --- a/nb2plots/nbplots.py
12 +++ b/nb2plots/nbplots.py
13 @@ -177,7 +177,11 @@
14
15 import six
16
17 -from collections import defaultdict, Sequence
18 +try:
19 + from collections.abc import Sequence
20 +except ImportError:
21 + from collections import Sequence
22 +from collections import defaultdict
23 import sys, os, shutil, io, re, textwrap
24 from os.path import (relpath, abspath, join as pjoin, dirname, exists,
25 basename, splitext, isdir)