projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6137fd
)
Woooohooo! python3 youtube_dl BaW_jenozKc -t works!
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 23:56:20 +0000
(
00:56
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 23:56:20 +0000
(
00:56
+0100)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 0aa350e648d154f9356d81b76a583deeb7ca4623..a5df62bf81ce0336ff4d641f8bcc93a1c27ff1c8 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-292,6
+292,10
@@
def encodeFilename(s):
assert type(s) == type(u'')
+ # Python 3 has a Unicode API
+ if sys.version_info >= (3, 0):
+ return s
+
if sys.platform == 'win32' and sys.getwindowsversion()[0] >= 5:
# Pass u'' directly to use Unicode APIs on Windows 2000 and up
# (Detecting Windows NT 4 is tricky because 'major >= 4' would