Skip to content

MNT: tweak MovieWriter.saving to be more cautious #7606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

tacaswell
Copy link
Member

  • always try to call finish even if an exception is raised.

  • return self so that

    with writer.saving(...) as mv:
    mv.grab_frame()

    works as expected.

This should go in after #7589 (if it gets in for 2.0 at all).

 - always try to call `finish` even if an exception is raised.
 - return `self` so that

    with writer.saving(...) as mv:
        mv.grab_frame()

   works as expected.
@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Dec 11, 2016
@tacaswell tacaswell changed the base branch from master to v2.x December 11, 2016 03:10
@tacaswell tacaswell closed this Dec 11, 2016
@tacaswell tacaswell reopened this Dec 11, 2016
Copy link
Contributor

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idiot that wrote this originally (i.e. me) should be ashamed that it didn't do either of these to begin with.

@dopplershift dopplershift changed the title MNT: tweak MovieWriter.saving to be more cautious [MRG + 1] MNT: tweak MovieWriter.saving to be more cautious Dec 12, 2016
@efiring efiring changed the title [MRG + 1] MNT: tweak MovieWriter.saving to be more cautious MNT: tweak MovieWriter.saving to be more cautious Dec 12, 2016
@efiring efiring merged commit 23392f8 into matplotlib:v2.x Dec 12, 2016
@QuLogic QuLogic modified the milestones: 2.0 (style change major release), 2.0.1 (next bug fix release) Dec 12, 2016
@tacaswell tacaswell deleted the mnt_more_paranoid_moviewriter_saving_cm branch December 12, 2016 21:51
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.

4 participants