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()
This commit is contained in:
Alec Clews 2018-03-05 06:49:09 +11:00 committed by Me No Dev
parent da46d0b264
commit 2718d69c19

View File

@ -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