1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 01:08:10 +00:00

[utils] Fix struct.pack call on very old Python versions (#4181)

This commit is contained in:
Philipp Hagemeister 2014-11-14 00:39:32 +01:00
parent 69ede8ef81
commit eb4157fd17

View file

@ -843,7 +843,7 @@ def bytes_to_intlist(bs):
def intlist_to_bytes(xs): def intlist_to_bytes(xs):
if not xs: if not xs:
return b'' return b''
return struct.pack('%dB' % len(xs), *xs) return struct_pack('%dB' % len(xs), *xs)
# Cross-platform file locking # Cross-platform file locking