]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[utils] Fix struct.pack call on very old Python versions (#4181)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 13 Nov 2014 23:39:32 +0000 (00:39 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 13 Nov 2014 23:39:32 +0000 (00:39 +0100)
youtube_dl/utils.py

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