mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
[compat] Correct compat_basestring definition
This commit is contained in:
parent
8f9312c387
commit
0196149c5b
1 changed files with 3 additions and 2 deletions
|
@ -120,9 +120,9 @@ except NameError:
|
|||
compat_str = str
|
||||
|
||||
try:
|
||||
compat_basestr = basestring # Python 2
|
||||
compat_basestring = basestring # Python 2
|
||||
except NameError:
|
||||
compat_basestr = str
|
||||
compat_basestring = str
|
||||
|
||||
try:
|
||||
compat_chr = unichr # Python 2
|
||||
|
@ -367,6 +367,7 @@ def workaround_optparse_bug9161():
|
|||
|
||||
__all__ = [
|
||||
'compat_HTTPError',
|
||||
'compat_basestring',
|
||||
'compat_chr',
|
||||
'compat_cookiejar',
|
||||
'compat_expanduser',
|
||||
|
|
Loading…
Reference in a new issue