youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 22603348aa0b3e02c520589dea092507a04ab06a
parent fec73daaa30d006bc6c5d0483d255b7bc1c256b1
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 18 Jul 2015 18:32:52 +0600

[compat] Fix _asciire

Diffstat:
Myoutube_dl/compat.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py @@ -79,7 +79,8 @@ try: from urllib.parse import unquote as compat_urllib_parse_unquote from urllib.parse import unquote_plus as compat_urllib_parse_unquote_plus except 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