mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[compat] Avoid type comparison in compat_ord
				
					
				
			NB This isn't actually a compat fn; it should be utils.int_from_int_or_char
This commit is contained in:
		| @@ -2970,7 +2970,7 @@ except (AssertionError, UnicodeEncodeError): | ||||
|  | ||||
|  | ||||
| def compat_ord(c): | ||||
|     if type(c) is int: | ||||
|     if isinstance(c, int): | ||||
|         return c | ||||
|     else: | ||||
|         return ord(c) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user