From 0196149c5bf6b72c1d268a4beb2c50e4ecb063d7 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 1 Feb 2015 11:36:59 +0100 Subject: [PATCH] [compat] Correct compat_basestring definition --- youtube_dl/compat.py | 5 +++-- 1 file 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 @@ def compat_urllib_parse_unquote(string, encoding='utf-8', errors='replace'): 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 _compat_add_option(self, *args, **kwargs): __all__ = [ 'compat_HTTPError', + 'compat_basestring', 'compat_chr', 'compat_cookiejar', 'compat_expanduser',