aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-05-03 16:50:16 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-05-10 14:51:38 +0800
commitedaa23f822a1e4a62771422fb598c7bd8ae0a152 (patch)
tree1fd265a1de34eee2e060ab16c0d54c8e6fced647 /youtube_dl/utils.py
parentd5ae6bb50124f8320f2b492380480038c487a6d2 (diff)
[compat] Rename struct_(un)pack to compat_struct_(un)pack
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index dc73f3407..dbac38b55 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -44,6 +44,7 @@ from .compat import (
compat_parse_qs,
compat_socket_create_connection,
compat_str,
+ compat_struct_pack,
compat_urllib_error,
compat_urllib_parse,
compat_urllib_parse_urlencode,
@@ -52,7 +53,6 @@ from .compat import (
compat_urlparse,
compat_xpath,
shlex_quote,
- struct_pack,
)
from .socks import (
@@ -1259,7 +1259,7 @@ def bytes_to_intlist(bs):
def intlist_to_bytes(xs):
if not xs:
return b''
- return struct_pack('%dB' % len(xs), *xs)
+ return compat_struct_pack('%dB' % len(xs), *xs)
# Cross-platform file locking