Files
pycmx/pycmx/parse_cmx_events.py
2025-12-18 09:40:26 -08:00

21 lines
611 B
Python

# pycmx
# (c) 2018-2025 Jamie Hardt
from typing import TextIO
from .parse_cmx_statements import (parse_cmx3600_statements)
from .edit_list import EditList
def parse_cmx3600(f: TextIO, tolerant: bool = False) -> EditList:
"""
Parse a CMX 3600 EDL.
:param TextIO f: a file-like object, an opened CMX 3600 .EDL file.
:param bool tolerant: If `True`, a relaxed event line parsing method will
be used, in the case the default method fails.
:returns: An :class:`pycmx.edit_list.EditList`.
"""
statements = parse_cmx3600_statements(f, tolerant)
return EditList(statements)