mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[compat] Work around kwargs bugs in old 2.6 Python releases (Fixes #3813)
This commit is contained in:
		| @@ -8,6 +8,7 @@ import sys | ||||
| from .compat import ( | ||||
|     compat_expanduser, | ||||
|     compat_getenv, | ||||
|     compat_kwargs, | ||||
| ) | ||||
| from .utils import ( | ||||
|     get_term_width, | ||||
| @@ -112,7 +113,7 @@ def parseOpts(overrideArguments=None): | ||||
|         'conflict_handler': 'resolve', | ||||
|     } | ||||
|  | ||||
|     parser = optparse.OptionParser(**kw) | ||||
|     parser = optparse.OptionParser(**compat_kwargs(kw)) | ||||
|  | ||||
|     general = optparse.OptionGroup(parser, 'General Options') | ||||
|     general.add_option( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister