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:
		| @@ -43,9 +43,9 @@ def cookie_to_dict(cookie): | ||||
|     if cookie.discard is not None: | ||||
|         cookie_dict['discard'] = cookie.discard | ||||
|     try: | ||||
|         if (cookie.has_nonstandard_attr('httpOnly') or | ||||
|                 cookie.has_nonstandard_attr('httponly') or | ||||
|                 cookie.has_nonstandard_attr('HttpOnly')): | ||||
|         if (cookie.has_nonstandard_attr('httpOnly') | ||||
|                 or cookie.has_nonstandard_attr('httponly') | ||||
|                 or cookie.has_nonstandard_attr('HttpOnly')): | ||||
|             cookie_dict['httponly'] = True | ||||
|     except TypeError: | ||||
|         pass | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․