1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

Python 2.6 compatibility fix. Thanks @Jamesc359 - closes #400

This commit is contained in:
Filippo Valsorda 2012-08-19 16:06:33 +02:00
parent a171dbfc27
commit 9bb8dc8e42
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -223,7 +223,7 @@ def encodeFilename(s):
assert type(s) == type(u'')
if sys.platform == 'win32' and sys.getwindowsversion().major >= 5:
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
# match Windows 9x series as well. Besides, NT 4 is obsolete.)