fix filetools.read
This commit is contained in:
+2
-2
@@ -175,9 +175,9 @@ def read(path, linea_inicio=0, total_lineas=None, whence=0, silent=False, vfs=Tr
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
if not PY3:
|
if not PY3:
|
||||||
return "".join(data)
|
return unicode("".join(data))
|
||||||
else:
|
else:
|
||||||
return b"".join(data)
|
return unicode(b"".join(data))
|
||||||
|
|
||||||
|
|
||||||
def write(path, data, mode="wb", silent=False, vfs=True):
|
def write(path, data, mode="wb", silent=False, vfs=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user