]> TLD Linux GIT Repositories - tld-builder.git/commitdiff
- one more fix for python3
authorMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 12:44:52 +0000 (14:44 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 12:44:52 +0000 (14:44 +0200)
TLD_Builder/request_fetcher.py

index 226e4ee573c3f4054c8f296700dace689e655b52..9a1caa53bdba946f68f8c9605e79455459b780d8 100644 (file)
@@ -5,7 +5,7 @@ import signal
 import os
 import urllib
 import sys
-from io import StringIO
+from io import StringIO, BytesIO
 import gzip
 import path
 import log
@@ -68,7 +68,7 @@ def fetch_queue(control_url):
         signal.alarm(0)
         log.error("can't fetch %s: %s" % (control_url + "/queue.gz", e))
         sys.exit(1)
-    sio = StringIO()
+    sio = BytesIO()
     util.sendfile(f, sio)
     f.close()
     sio.seek(0)