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:
parent
da46d0b264
commit
2718d69c19
@ -17,6 +17,7 @@ import zipfile
|
|||||||
import re
|
import re
|
||||||
if sys.version_info[0] == 3:
|
if sys.version_info[0] == 3:
|
||||||
from urllib.request import urlretrieve
|
from urllib.request import urlretrieve
|
||||||
|
unicode = lambda s: str(s)
|
||||||
else:
|
else:
|
||||||
# Not Python 3 - today, it is most likely to be Python 2
|
# Not Python 3 - today, it is most likely to be Python 2
|
||||||
from urllib import urlretrieve
|
from urllib import urlretrieve
|
||||||
|
Loading…
Reference in New Issue
Block a user