Skip to content

Allow av.open to be used as a context manager - #515

Merged
jlaine merged 1 commit into
PyAV-Org:developfrom
jlaine:context-manager
May 5, 2019
Merged

jlaine merged 1 commit into
PyAV-Org:developfrom
jlaine:context-manager

Conversation

@jlaine

@jlaine jlaine commented May 5, 2019

Copy link
Copy Markdown
Member

This allows us to do:

    with av.open('some_file.mp4') as container:
        ...

This allows us to do:

    with av.open('some_file.mp4') as container:
        ...
@jlaine
jlaine merged commit 9bda7d8 into PyAV-Org:develop May 5, 2019
@jlaine
jlaine deleted the context-manager branch May 7, 2019 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant