summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-08-10 08:50:04 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-08-10 08:50:04 +0000
commitc7da4a2e7f8cb26c63ebc5c226c0cfefb5290755 (patch)
treeb5459204dda65cfb6881e626e58374c1f59bad84 /src
parentfb19e46931baeb83f7547ea0cf734593e2a949a1 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/cython/cython/reader_utils.pyx2
1 files changed, 1 insertions, 1 deletions
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 []