[utils] Revise isinstance() tests (especially for str/unicode/bytes) to complete Linter fix

This commit is contained in:
dirkf 2023-07-30 21:47:48 +01:00
commit 2d2a4bc832
2 changed files with 73 additions and 82 deletions

View file

@ -36,7 +36,7 @@ try:
)
except NameError:
compat_str, compat_basestring, compat_chr = (
str, str, chr
str, (str, bytes), chr
)
# casefold