Skip to content

Commit

Permalink
[compat] Avoid type comparison in compat_ord
Browse files Browse the repository at this point in the history
NB This isn't actually a compat fn; it should be utils.int_from_int_or_char
  • Loading branch information
dirkf committed May 28, 2024
1 parent 0ea1a4d commit 8348cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2970,7 +2970,7 @@ def compat_shlex_split(s, comments=False, posix=True):


def compat_ord(c):
if type(c) is int:
if isinstance(c, int):
return c
else:
return ord(c)
Expand Down

0 comments on commit 8348cdb

Please sign in to comment.