From 8ce855df150ea44d6bbe332cde3edbb90b8cc4b6 Mon Sep 17 00:00:00 2001 From: Alec Clews Date: Mon, 5 Feb 2018 14:40:51 +1100 Subject: [PATCH] Python 3 fails, unicode is not needed or supplied See https://stackoverflow.com/questions/6812031/how-to-make-unicode-string-with-python3 May unicode an alias for str() --- tools/get.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/get.py b/tools/get.py index cbff69d2e09..8887e777c2e 100644 --- a/tools/get.py +++ b/tools/get.py @@ -17,6 +17,7 @@ import re if sys.version_info[0] == 3: from urllib.request import urlretrieve + unicode = lambda s: str(s) else: # Not Python 3 - today, it is most likely to be Python 2 from urllib import urlretrieve