Fix StringIO module import to be compatible with Python3

This commit is contained in:
marmeladema 2019-10-14 18:19:07 +01:00
parent 5bd0fca140
commit bf66a08c02
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ import platform
import shutil
from socket import error as socket_error
import stat
import StringIO
from io import BytesIO
import sys
import time
import zipfile
@ -154,7 +154,7 @@ def download(desc, src, writer, start_byte=0):
def download_bytes(desc, src):
content_writer = StringIO.StringIO()
content_writer = BytesIO()
download(desc, src, content_writer)
return content_writer.getvalue()