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/off_reader.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/off_reader.pyx')
-rw-r--r-- | src/python/gudhi/off_reader.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/off_reader.pyx b/src/python/gudhi/off_reader.pyx index 9efd97ff..27a89870 100644 --- a/src/python/gudhi/off_reader.pyx +++ b/src/python/gudhi/off_reader.pyx @@ -29,7 +29,7 @@ def read_off(off_file=''): :returns: The point set. :rtype: vector[vector[double]] """ - if off_file is not '': + if off_file: if os.path.isfile(off_file): return read_points_from_OFF_file(str.encode(off_file)) else: |