diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2012-11-28 00:56:20 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2012-11-28 00:56:20 +0100 |
commit | 0f00efed4c06fefcd4da7294cb3c92bccf081eaa (patch) | |
tree | ca6b476453c37fdba1e8718964b6aa8658f49c90 /youtube_dl/utils.py | |
parent | e6137fd61d47ba8624e9baa84701adf929e38849 (diff) |
Woooohooo! python3 youtube_dl BaW_jenozKc -t works!
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 0aa350e64..a5df62bf8 100644 --- 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 |