summaryrefslogtreecommitdiff
path: root/src/python/gudhi/cubical_complex.pyx
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-27 10:40:34 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-27 10:40:34 +0100
commitc7b70317b643b2eb9c603602da9c979388829821 (patch)
treeb6902eb51b29d0033f086f80ba3cb5d82c11c9d8 /src/python/gudhi/cubical_complex.pyx
parent6e9211cccad31145a5675a33689b167008ac1ffa (diff)
parent5d5f40493ce60f2a606793645bf713c60fb5284d (diff)
Merge branch 'master' into print_warnings_to_stderr
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 28913a32..1dd30b4e 100644
--- a/src/python/gudhi/cubical_complex.pyx
+++ b/src/python/gudhi/cubical_complex.pyx
@@ -87,7 +87,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.", file=sys.stderr)
else: