mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[cleanup] Remove unused code paths (#2173)
Notes: * `_windows_write_string`: Fixed in 3.6 * https://bugs.python.org/issue1602 * PEP: https://www.python.org/dev/peps/pep-0528 * Windows UTF-8 fix: Fixed in 3.3 * https://bugs.python.org/issue13216 * `__loader__`: is always present in 3.3+ * https://bugs.python.org/issue14646 * `workaround_optparse_bug9161`: Fixed in 2.7 * https://bugs.python.org/issue9161 Authored by: fstirlitz
This commit is contained in:
		| @@ -1008,12 +1008,6 @@ class YoutubeDL(object): | ||||
|             expand_path(paths.get('home', '').strip()), | ||||
|             expand_path(paths.get(dir_type, '').strip()) if dir_type else '', | ||||
|             filename or '') | ||||
| 
 | ||||
|         # Temporary fix for #4787 | ||||
|         # 'Treat' all problem characters by passing filename through preferredencoding | ||||
|         # to workaround encoding issues with subprocess on python2 @ Windows | ||||
|         if sys.version_info < (3, 0) and sys.platform == 'win32': | ||||
|             path = encodeFilename(path, True).decode(preferredencoding()) | ||||
|         return sanitize_path(path, force=self.params.get('windowsfilenames')) | ||||
| 
 | ||||
|     @staticmethod | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 felix
					felix