A feature-rich command-line audio/video downloader
[compat] Fix _asciire
Sergey M․22603348aa0b
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.pyindex db0da5828d..0c57c7aebf 100644--- a/youtube_dl/compat.py+++ b/youtube_dl/compat.py@@ -79,7 +79,8 @@ try:from urllib.parse import unquote as compat_urllib_parse_unquotefrom urllib.parse import unquote_plus as compat_urllib_parse_unquote_plusexcept ImportError: # Python 2- _asciire = re.compile('([\x00-\x7f]+)') if sys.version_info < (2, 7) else compat_urllib_parse._asciire+ _asciire = (compat_urllib_parse._asciire if hasattr(compat_urllib_parse, '_asciire')+ else re.compile('([\x00-\x7f]+)'))# HACK: The following are the correct unquote_to_bytes, unquote and unquote_plus# implementations from cpython 3.4.3's stdlib. Python 2's version