aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-01 11:36:59 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-01 11:37:00 +0100
commit0196149c5bf6b72c1d268a4beb2c50e4ecb063d7 (patch)
tree728a4ca97dce0321c8871e51df5d82e7de8ebd83
parent8f9312c38779f4e0746c01ef9a8a93ab4767699b (diff)
downloadyoutube-dl-0196149c5bf6b72c1d268a4beb2c50e4ecb063d7.tar.xz
[compat] Correct compat_basestring definition
-rw-r--r--youtube_dl/compat.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index ec685d50e..e989cdbbd 100644
--- 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_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',