From 2718d69c19a34c56abff770a02e1eb5ec84ac689 Mon Sep 17 00:00:00 2001 From: Alec Clews Date: Mon, 5 Mar 2018 06:49:09 +1100 Subject: [PATCH] Python 3 fails, unicode is not needed or supplied (#1082) 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 cbff69d2..8887e777 100644 --- a/tools/get.py +++ b/tools/get.py @@ -17,6 +17,7 @@ import zipfile 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