From c7da4a2e7f8cb26c63ebc5c226c0cfefb5290755 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Thu, 10 Aug 2017 08:50:04 +0000 Subject: Fix Python2 compatibility git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_diagram_improvement@2607 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b8744511b527f7117d3432c559dcb68b59253e53 --- src/cython/cython/reader_utils.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cython/cython/reader_utils.pyx b/src/cython/cython/reader_utils.pyx index 14976167..3a17c5a0 100644 --- a/src/cython/cython/reader_utils.pyx +++ b/src/cython/cython/reader_utils.pyx @@ -49,7 +49,7 @@ def read_lower_triangular_matrix_from_csv_file(csv_file='', separator=';'): """ if csv_file is not '': if os.path.isfile(csv_file): - return read_matrix_from_csv_file(str.encode(csv_file), str.encode(separator)[0]) + return read_matrix_from_csv_file(str.encode(csv_file), ord(separator[0])) print("file " + csv_file + " not set or not found.") return [] -- cgit v1.2.3