summaryrefslogtreecommitdiff
path: root/src/python/gudhi/tangential_complex.pyx
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2019-11-09 21:03:13 +0100
committerMarc Glisse <marc.glisse@inria.fr>2019-11-09 21:03:13 +0100
commitd091cf5369c2eba0bb301942842d56606a45af76 (patch)
tree25eeda58d913cf25b096f77ebc26d5335bfa1007 /src/python/gudhi/tangential_complex.pyx
parentdb405e686cc859e510b894dca45562158cb5c963 (diff)
Replace 'is' with == or similar.
Related to issue #113, but I did not touch persistence_graphical_tools.py which is handled in PR #119. I don't know if I got them all, I guess we'll start seeing the warnings with python-3.8 soon enough.
Diffstat (limited to 'src/python/gudhi/tangential_complex.pyx')
-rw-r--r--src/python/gudhi/tangential_complex.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/tangential_complex.pyx b/src/python/gudhi/tangential_complex.pyx
index 3a945fe2..9ef15567 100644
--- a/src/python/gudhi/tangential_complex.pyx
+++ b/src/python/gudhi/tangential_complex.pyx
@@ -65,7 +65,7 @@ cdef class TangentialComplex:
# The real cython constructor
def __cinit__(self, intrisic_dim, points=None, off_file=''):
- if off_file is not '':
+ if off_file:
if os.path.isfile(off_file):
self.thisptr = new Tangential_complex_interface(intrisic_dim, str.encode(off_file), True)
else: