mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-11 23:39:29 +01:00
[compat] Correct compat_basestring definition
This commit is contained in:
parent
8f9312c387
commit
0196149c5b
@ -120,9 +120,9 @@ def compat_urllib_parse_unquote(string, encoding='utf-8', errors='replace'):
|
|||||||
compat_str = str
|
compat_str = str
|
||||||
|
|
||||||
try:
|
try:
|
||||||
compat_basestr = basestring # Python 2
|
compat_basestring = basestring # Python 2
|
||||||
except NameError:
|
except NameError:
|
||||||
compat_basestr = str
|
compat_basestring = str
|
||||||
|
|
||||||
try:
|
try:
|
||||||
compat_chr = unichr # Python 2
|
compat_chr = unichr # Python 2
|
||||||
@ -367,6 +367,7 @@ def _compat_add_option(self, *args, **kwargs):
|
|||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
'compat_HTTPError',
|
'compat_HTTPError',
|
||||||
|
'compat_basestring',
|
||||||
'compat_chr',
|
'compat_chr',
|
||||||
'compat_cookiejar',
|
'compat_cookiejar',
|
||||||
'compat_expanduser',
|
'compat_expanduser',
|
||||||
|
Loading…
Reference in New Issue
Block a user