Skip to content

Commit c4bd031

Browse files
authored
Reintroduce is_multithreaded argument in generate_isd_sequence for backward compatibility
1 parent 7c53351 commit c4bd031

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/python/ttconv/isd.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,18 @@ def from_model(
357357

358358
return isd
359359

360+
# TODO: remove is_multithreaded
360361
@staticmethod
361362
def generate_isd_sequence(
362363
doc: model.ContentDocument,
363-
progress_callback=lambda _: None) -> typing.List[typing.Tuple[Fraction, ISD]]:
364+
progress_callback=lambda _: None,
365+
is_multithreaded: bool = True # pylint: disable=unused-argument
366+
) -> typing.List[typing.Tuple[Fraction, ISD]]:
364367
""" Returns a list of duples, each consisting of a significant time in the ContentDocument `doc`
365368
and the corresponding `ISD` instance. The duples are sorted in order of increasing significant time.
369+
The `is_multithreaded` flag is not used and is kept for backwards compatibility only.
366370
"""
367-
371+
368372
sig_times = ISD.significant_times(doc)
369373

370374
progress_callback(0.1)

0 commit comments

Comments
 (0)