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/tangential_complex.pyx | |
parent | e1255fe356f1ff97533b33caa6179737a64c4898 (diff) |
In python2, does not work. is ok for Python 2 and 3
Diffstat (limited to 'src/python/gudhi/tangential_complex.pyx')
-rw-r--r-- | src/python/gudhi/tangential_complex.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/tangential_complex.pyx b/src/python/gudhi/tangential_complex.pyx index 0083033c..6391488c 100644 --- a/src/python/gudhi/tangential_complex.pyx +++ b/src/python/gudhi/tangential_complex.pyx @@ -66,7 +66,7 @@ cdef class TangentialComplex: def __cinit__(self, intrisic_dim, points=None, off_file=''): if off_file: if os.path.isfile(off_file): - self.thisptr = new Tangential_complex_interface(intrisic_dim, str.encode(off_file), True) + self.thisptr = new Tangential_complex_interface(intrisic_dim, off_file.encode('utf-8'), True) else: print("file " + off_file + " not found.") else: |