diff options
| author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-08-19 16:06:33 +0200 | 
|---|---|---|
| committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-08-19 16:06:33 +0200 | 
| commit | 9bb8dc8e42da4e47008a0acd2a1d69e00193e02d (patch) | |
| tree | 63196f96f18b4ca65fde215ecbe116f08c45cbeb | |
| parent | a171dbfc2703b8d7c726024cdc21875b628b09d5 (diff) | |
Python 2.6 compatibility fix. Thanks @Jamesc359 - closes #400
| -rwxr-xr-x | youtube-dl | bin | 40663 -> 40997 bytes | |||
| -rw-r--r-- | youtube_dl/utils.py | 2 | 
2 files changed, 1 insertions, 1 deletions
| diff --git a/youtube-dl b/youtube-dlBinary files differ index f2268af22..789cb58f5 100755 --- a/youtube-dl +++ b/youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 2853ba50f..922e17ecc 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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.) | 
