import upstream PR to import Sequence properly; Closes: #1008261
Sandro Tosi
2 years ago
9 | 9 |
- extend packaging copyright years
|
10 | 10 |
* debian/control
|
11 | 11 |
- 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
|
12 | 14 |
|
13 | 15 |
[ Debian Janitor ]
|
14 | 16 |
* Bump debhelper from deprecated 9 to 13.
|
|
18 | 20 |
* Remove constraints unnecessary since buster:
|
19 | 21 |
+ Build-Depends: Drop versioned constraint on python3-six.
|
20 | 22 |
|
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
|
22 | 24 |
|
23 | 25 |
nb2plots (0.6-2) unstable; urgency=medium
|
24 | 26 |
|
|
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)
|