diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2019-11-09 21:03:13 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2019-11-09 21:03:13 +0100 |
commit | d091cf5369c2eba0bb301942842d56606a45af76 (patch) | |
tree | 25eeda58d913cf25b096f77ebc26d5335bfa1007 /src/python/gudhi/periodic_cubical_complex.pyx | |
parent | db405e686cc859e510b894dca45562158cb5c963 (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/periodic_cubical_complex.pyx')
-rw-r--r-- | src/python/gudhi/periodic_cubical_complex.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/gudhi/periodic_cubical_complex.pyx b/src/python/gudhi/periodic_cubical_complex.pyx index 724fadd4..88223afb 100644 --- a/src/python/gudhi/periodic_cubical_complex.pyx +++ b/src/python/gudhi/periodic_cubical_complex.pyx @@ -68,9 +68,9 @@ cdef class PeriodicCubicalComplex: # The real cython constructor def __cinit__(self, dimensions=None, top_dimensional_cells=None, periodic_dimensions=None, perseus_file=''): - if (dimensions is not None) and (top_dimensional_cells is not None) and (periodic_dimensions is not None) and (perseus_file is ''): + if (dimensions is not None) and (top_dimensional_cells is not None) and (periodic_dimensions is not None) and (perseus_file == ''): self.thisptr = new Periodic_cubical_complex_base_interface(dimensions, top_dimensional_cells, periodic_dimensions) - elif (dimensions is None) and (top_dimensional_cells is None) and (periodic_dimensions is None) and (perseus_file is not ''): + elif (dimensions is None) and (top_dimensional_cells is None) and (periodic_dimensions is None) and (perseus_file != ''): if os.path.isfile(perseus_file): self.thisptr = new Periodic_cubical_complex_base_interface(str.encode(perseus_file)) else: |