From bf66a08c023e0f8fe93ad1a41dae90e0ca12c002 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Mon, 14 Oct 2019 18:19:07 +0100 Subject: Fix StringIO module import to be compatible with Python3 --- python/servo/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/servo/util.py') diff --git a/python/servo/util.py b/python/servo/util.py index e30f377db66..38127093ae8 100644 --- a/python/servo/util.py +++ b/python/servo/util.py @@ -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() -- cgit v1.2.3