From 7c539382e6fdad8c817e1d32995bc5aae55c965f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tronel?= Date: Fri, 28 Aug 2026 17:05:50 +0200 Subject: [PATCH] Replace = bytes() by b''. --- src/tscut/tscut.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tscut/tscut.py b/src/tscut/tscut.py index e7f529b..09e18ce 100755 --- a/src/tscut/tscut.py +++ b/src/tscut/tscut.py @@ -2622,7 +2622,7 @@ def extract_pictures(ffmpeg_path:str, input_file:IO[bytes], begin:timedelta, nb_ '-c:v', 'ppm','-f', 'image2pipe', f'/proc/self/fd/{outfd:d}'] logger.debug('Executing: %s', command) - images = bytes() + images = b'' with Popen(command, stdout=PIPE, close_fds=False) as ffmpeg: status = ffmpeg.wait() if status != 0: @@ -2650,7 +2650,7 @@ def extract_sound(ffmpeg_path:str, input_file: IO[bytes], begin:timedelta, outpu lseek(infd, 0, SEEK_SET) set_inheritable(infd, True) set_inheritable(outfd, True) - sound = bytes() + sound = b'' length = int(nb_channels*sample_rate*4*nb_packets*packet_duration/1000) command = [ffmpeg_path, '-y', '-loglevel', 'quiet', '-ss', f'{begin}',