projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d8841
)
[utils] Clarify Python versions affected by buggy struct module
author
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 24 Mar 2016 10:06:15 +0000
(18:06 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 24 Mar 2016 10:06:15 +0000
(18:06 +0800)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 03bb7782f492daa247c6ababba6c975d5548d75e..b6e1dc8099f8d3e8f513b38303a282000e4932df 100644
(file)
--- 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')