8000 Python 3 fails, unicode is not needed or supplied (#1082) · c7589242/arduino-esp32@2718d69 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2718d69

Browse files
alecthegeekme-no-dev
authored andcommitted
Python 3 fails, unicode is not needed or supplied (espressif#1082)
See https://stackoverflow.com/questions/6812031/how-to-make-unicode-string-with-python3 May unicode an alias for str()
1 parent da46d0b commit 2718d69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/get.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import re
1818
if sys.version_info[0] == 3:
1919
from urllib.request import urlretrieve
20+
unicode = lambda s: str(s)
2021
else:
2122
# Not Python 3 - today, it is most likely to be Python 2
2223
from urllib import urlretrieve

0 commit comments

Comments
 (0)
0