fix filetools.read

This commit is contained in:
marco
2020-02-09 14:39:51 +01:00
parent 8092b32eb1
commit 0ebb61cdfc

View File

@@ -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):