mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 08:50:54 +00:00
21 lines
611 B
Python
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)
|