summaryrefslogtreecommitdiff
path: root/src/python/gudhi/cubical_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/cubical_complex.pyx
parente1255fe356f1ff97533b33caa6179737a64c4898 (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.pyx2
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: