Skip to content

Commit 2718d69

Browse files
alecthegeekme-no-dev
authored andcommitted
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()
1 parent da46d0b commit 2718d69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tools/get.py

+1
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)