From 0ebb61cdfc5f90a1e22d34ec0ae44fe66586d89b Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 9 Feb 2020 14:39:51 +0100 Subject: [PATCH] fix filetools.read --- core/filetools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/filetools.py b/core/filetools.py index 03903f18..3b97063c 100644 --- a/core/filetools.py +++ b/core/filetools.py @@ -175,9 +175,9 @@ def read(path, linea_inicio=0, total_lineas=None, whence=0, silent=False, vfs=Tr else: if not PY3: - return "".join(data) + return unicode("".join(data)) else: - return b"".join(data) + return unicode(b"".join(data)) def write(path, data, mode="wb", silent=False, vfs=True):