summaryrefslogtreecommitdiff
path: root/src/python/gudhi/alpha_complex.pyx
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-15 10:23:58 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-15 10:23:58 +0100
commitd747facccbe835be1384e569cf3d6e4c335c0364 (patch)
treec96f825a731b82f7240b2ffc81a57a8dd2bffa92 /src/python/gudhi/alpha_complex.pyx
parente1255fe356f1ff97533b33caa6179737a64c4898 (diff)
In python2, does not work. is ok for Python 2 and 3
Diffstat (limited to 'src/python/gudhi/alpha_complex.pyx')
-rw-r--r--src/python/gudhi/alpha_complex.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/alpha_complex.pyx b/src/python/gudhi/alpha_complex.pyx
index db11416c..f3ca3dd5 100644
--- a/src/python/gudhi/alpha_complex.pyx
+++ b/src/python/gudhi/alpha_complex.pyx
@@ -69,7 +69,7 @@ cdef class AlphaComplex:
def __cinit__(self, points = None, off_file = ''):
if off_file:
if os.path.isfile(off_file):
- self.thisptr = new Alpha_complex_interface(str.encode(off_file), True)
+ self.thisptr = new Alpha_complex_interface(off_file.encode('utf-8'), True)
else:
print("file " + off_file + " not found.")
else: