diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-01-15 10:23:58 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-01-15 10:23:58 +0100 |
commit | d747facccbe835be1384e569cf3d6e4c335c0364 (patch) | |
tree | c96f825a731b82f7240b2ffc81a57a8dd2bffa92 /src/python/gudhi/cubical_complex.pyx | |
parent | e1255fe356f1ff97533b33caa6179737a64c4898 (diff) |
In python2, does not work. is ok for Python 2 and 3
Diffstat (limited to 'src/python/gudhi/cubical_complex.pyx')
-rw-r--r-- | src/python/gudhi/cubical_complex.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/cubical_complex.pyx b/src/python/gudhi/cubical_complex.pyx index 92ff6411..cbeda014 100644 --- a/src/python/gudhi/cubical_complex.pyx +++ b/src/python/gudhi/cubical_complex.pyx @@ -85,7 +85,7 @@ cdef class CubicalComplex: elif ((dimensions is None) and (top_dimensional_cells is None) and (perseus_file != '')): if os.path.isfile(perseus_file): - self.thisptr = new Bitmap_cubical_complex_base_interface(str.encode(perseus_file)) + self.thisptr = new Bitmap_cubical_complex_base_interface(perseus_file.encode('utf-8')) else: print("file " + perseus_file + " not found.") else: |