mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Fix W504 and disable W503 (closes #20863)
This commit is contained in:
		| @@ -2649,9 +2649,9 @@ else: | ||||
|  | ||||
| try: | ||||
|     args = shlex.split('中文') | ||||
|     assert (isinstance(args, list) and | ||||
|             isinstance(args[0], compat_str) and | ||||
|             args[0] == '中文') | ||||
|     assert (isinstance(args, list) | ||||
|             and isinstance(args[0], compat_str) | ||||
|             and args[0] == '中文') | ||||
|     compat_shlex_split = shlex.split | ||||
| except (AssertionError, UnicodeEncodeError): | ||||
|     # Working around shlex issue with unicode strings on some python 2 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․