[compat] Rename struct_(un)pack to compat_struct_(un)pack

This commit is contained in:
Yen Chi Hsuan
2016-05-03 16:50:16 +08:00
parent d5ae6bb501
commit edaa23f822
7 changed files with 42 additions and 42 deletions

View File

@ -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