mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Python 2.6 compatibility fix. Thanks @Jamesc359 - closes #400
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								youtube-dl
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								youtube-dl
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -223,7 +223,7 @@ def encodeFilename(s): | |||||||
|  |  | ||||||
| 	assert type(s) == type(u'') | 	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 | 		# Pass u'' directly to use Unicode APIs on Windows 2000 and up | ||||||
| 		# (Detecting Windows NT 4 is tricky because 'major >= 4' would | 		# (Detecting Windows NT 4 is tricky because 'major >= 4' would | ||||||
| 		# match Windows 9x series as well. Besides, NT 4 is obsolete.) | 		# match Windows 9x series as well. Besides, NT 4 is obsolete.) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Filippo Valsorda
					Filippo Valsorda