mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-20 05:14:02 -07:00
[compat] Rename struct_(un)pack to compat_struct_(un)pack
This commit is contained in:
parent
d5ae6bb501
commit
edaa23f822
7 changed files with 42 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue