File: fix-deprecated-collections-import-since-.patch

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,828 kB
  • sloc: python: 3,094; cpp: 283; makefile: 181; sh: 24; ansic: 12
file content (35 lines) | stat: -rw-r--r-- 972 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Sun, 21 Nov 2021 22:02:40 +0100
Subject: Fix deprecated collections import (since Python 3.3)

---
 pcl/_pcl_180.pyx          | 2 +-
 pcl/pcl_visualization.pyx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pcl/_pcl_180.pyx b/pcl/_pcl_180.pyx
index 0d23245..aa3df22 100644
--- a/pcl/_pcl_180.pyx
+++ b/pcl/_pcl_180.pyx
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # cython: embedsignature=True
 
-from collections import Sequence
+from collections.abc import Sequence
 import numbers
 import numpy as np
 cimport numpy as cnp
diff --git a/pcl/pcl_visualization.pyx b/pcl/pcl_visualization.pyx
index 820bd40..f9e8ebc 100644
--- a/pcl/pcl_visualization.pyx
+++ b/pcl/pcl_visualization.pyx
@@ -2,7 +2,7 @@
 # cython: embedsignature=True
 from libcpp cimport bool
 
-from collections import Sequence
+from collections.abc import Sequence
 import numbers
 import numpy as np
 cimport numpy as cnp