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
|