projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f9312c
)
[compat] Correct compat_basestring definition
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 1 Feb 2015 10:36:59 +0000
(11:36 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 1 Feb 2015 10:37:00 +0000
(11:37 +0100)
youtube_dl/compat.py
patch
|
blob
|
history
diff --git
a/youtube_dl/compat.py
b/youtube_dl/compat.py
index ec685d50e2b27d5aef32cf97ab7cc33d3f8a7fac..e989cdbbd180abf4543726e86d088cd45225bfca 100644
(file)
--- a/
youtube_dl/compat.py
+++ b/
youtube_dl/compat.py
@@
-120,9
+120,9
@@
except NameError:
compat_str = str
try:
- compat_basestr = basestring # Python 2
+ compat_basestr
ing
= basestring # Python 2
except NameError:
- compat_basestr = str
+ compat_basestr
ing
= 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',