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/simplex_tree.pyx | |
parent | e1255fe356f1ff97533b33caa6179737a64c4898 (diff) |
In python2, does not work. is ok for Python 2 and 3
Diffstat (limited to 'src/python/gudhi/simplex_tree.pyx')
-rw-r--r-- | src/python/gudhi/simplex_tree.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/simplex_tree.pyx b/src/python/gudhi/simplex_tree.pyx index 85d25492..b18627c4 100644 --- a/src/python/gudhi/simplex_tree.pyx +++ b/src/python/gudhi/simplex_tree.pyx @@ -508,7 +508,7 @@ cdef class SimplexTree: """ if self.pcohptr != NULL: if persistence_file != '': - self.pcohptr.write_output_diagram(str.encode(persistence_file)) + self.pcohptr.write_output_diagram(persistence_file.encode('utf-8')) else: print("persistence_file must be specified") else: |