summaryrefslogtreecommitdiff
path: root/src/python/gudhi/simplex_tree.pyx
diff options
context:
space:
mode:
authorVincent Rouvreau <vincent.rouvreau@inria.fr>2022-02-28 09:50:08 +0100
committerVincent Rouvreau <vincent.rouvreau@inria.fr>2022-02-28 09:51:30 +0100
commit4e63e52758daa7ef27782b4f129b7e55fa73de43 (patch)
tree0f1d098c7eda27e16b09c00c57fceec376880a51 /src/python/gudhi/simplex_tree.pyx
parentd5ac245a6dc4ab2d6e30689fc5d95503c40b6187 (diff)
code review: use 'isinstance' instead of 'type'
Diffstat (limited to 'src/python/gudhi/simplex_tree.pyx')
-rw-r--r--src/python/gudhi/simplex_tree.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/simplex_tree.pyx b/src/python/gudhi/simplex_tree.pyx
index e1685ded..711796d4 100644
--- a/src/python/gudhi/simplex_tree.pyx
+++ b/src/python/gudhi/simplex_tree.pyx
@@ -56,7 +56,7 @@ cdef class SimplexTree:
def __cinit__(self, other = None):
cdef SimplexTree ostr
if other:
- if type(other) is SimplexTree:
+ if isinstance(other, SimplexTree):
ostr = <SimplexTree> other
self.thisptr = <intptr_t>(new Simplex_tree_interface_full_featured(dereference(ostr.get_ptr())))
else: