aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-03-24 18:06:15 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-03-24 18:06:15 +0800
commit622d19160bd81161e18c6ce868c359549a4d0413 (patch)
tree3fefc0adae5613408433dcd18d0de80827e5b30f
parent32d88410eb2ef0ca25ab770af8f2ca2326c0aca7 (diff)
[utils] Clarify Python versions affected by buggy struct module
-rw-r--r--youtube_dl/utils.py3
1 files changed, 2 insertions, 1 deletions
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')