mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
		| @@ -112,7 +112,7 @@ def clean_proxies(proxies: dict, headers: HTTPHeaderDict): | ||||
| 
 | ||||
|             replace_scheme = { | ||||
|                 'socks5': 'socks5h',  # compat: socks5 was treated as socks5h | ||||
|                 'socks': 'socks4'  # compat: non-standard | ||||
|                 'socks': 'socks4',  # compat: non-standard | ||||
|             } | ||||
|             if proxy_scheme in replace_scheme: | ||||
|                 proxies[proxy_key] = urllib.parse.urlunparse( | ||||
| @@ -160,5 +160,5 @@ def normalize_url(url): | ||||
|         path=escape_rfc3986(remove_dot_segments(url_parsed.path)), | ||||
|         params=escape_rfc3986(url_parsed.params), | ||||
|         query=escape_rfc3986(url_parsed.query), | ||||
|         fragment=escape_rfc3986(url_parsed.fragment) | ||||
|         fragment=escape_rfc3986(url_parsed.fragment), | ||||
|     ).geturl() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro