mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-20 13:24:16 -07:00
[utils] Revise isinstance()
tests (especially for str/unicode/bytes) to complete Linter fix
This commit is contained in:
parent
7d965e6b65
commit
2d2a4bc832
2 changed files with 73 additions and 82 deletions
|
@ -36,7 +36,7 @@ try:
|
|||
)
|
||||
except NameError:
|
||||
compat_str, compat_basestring, compat_chr = (
|
||||
str, str, chr
|
||||
str, (str, bytes), chr
|
||||
)
|
||||
|
||||
# casefold
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue