summaryrefslogtreecommitdiff
path: root/src/python/gudhi/simplex_tree.pyx
diff options
context:
space:
mode:
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: