mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-30 02:37:14 +02:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user