Commit 348c36e5 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

fix python 3 bytes issue

parent 88a5f8b5
......@@ -21,5 +21,5 @@ def reader(biofile):
data = read_original_data(
biofile, database.original_directory, database.original_extension)
label = file_to_label(biofile)
key = str(biofile.path)
key = str(biofile.path).encode("utf-8")
return (data, label, key)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment