diff options
author | dirkf <[email protected]> | 2024-05-28 15:59:34 +0100 |
---|---|---|
committer | dirkf <[email protected]> | 2024-05-30 15:46:36 +0100 |
commit | 768ccccd9b18bc48d129b12d14eace4ebb3655d8 (patch) | |
tree | e04a77c1bafc8832a388957082a17c4882a1ef80 /youtube_dl/compat.py | |
parent | eee9a247eb3ef876ce6d9f5e34275e46a2d06d10 (diff) | |
download | youtube-dl-768ccccd9b18bc48d129b12d14eace4ebb3655d8.tar.gz youtube-dl-768ccccd9b18bc48d129b12d14eace4ebb3655d8.zip |
[compat] Avoid type comparison in `compat_ord`
NB This isn't actually a compat fn; it should be utils.int_from_int_or_char
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r-- | youtube_dl/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 0371896ab..ed1a33cf2 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -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) |