From: Yen Chi Hsuan Date: Thu, 24 Mar 2016 10:06:15 +0000 (+0800) Subject: [utils] Clarify Python versions affected by buggy struct module X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=622d19160bd81161e18c6ce868c359549a4d0413;p=youtube-dl [utils] Clarify Python versions affected by buggy struct module --- diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 03bb7782f..b6e1dc809 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1756,7 +1756,8 @@ def escape_url(url): try: struct.pack('!I', 0) except TypeError: - # In Python 2.6 (and some 2.7 versions), struct requires a bytes argument + # In Python 2.6 and 2.7.x < 2.7.7, struct requires a bytes argument + # See https://bugs.python.org/issue19099 def struct_pack(spec, *args): if isinstance(spec, compat_str): spec = spec.encode('ascii')