Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40b91ce

Browse files
committed
Clean-ups.
1 parent 86c7b2a commit 40b91ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/animation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ class MovieWriter(object):
6767
This class is set up to provide for writing movie frame data to a pipe.
6868
saving() is provided as a context manager to facilitate this process as::
6969
70-
`` with moviewriter.saving('myfile.mp4'):
71-
# Iterate over frames
72-
moviewriter.grab_frame()``
70+
with moviewriter.saving('myfile.mp4'):
71+
# Iterate over frames
72+
moviewriter.grab_frame()
7373
7474
The use of the context manager ensures that setup and cleanup are
7575
performed as necessary.
@@ -341,7 +341,7 @@ def output_args(self):
341341
# The %dk adds 'k' as a suffix so that ffmpeg treats our bitrate as in
342342
# kbps
343343
args = ['-vcodec', self.codec]
344-
if self.bitrate > 0:
344+
if self.bitrate > 0:
345345
args.extend(['-b', '%dk' % self.bitrate])
346346
if self.extra_args:
347347
args.extend(self.extra_args)
@@ -394,7 +394,7 @@ def _remap_metadata(self):
394394
def output_args(self):
395395
self._remap_metadata()
396396
args = ['-o', self.outfile, '-ovc', 'lavc', 'vcodec=%s' % self.codec]
397-
if self.bitrate > 0:
397+
if self.bitrate > 0:
398398
args.append('vbitrate=%d' % self.bitrate)
399399
if self.extra_args:
400400
args.extend(self.extra_args)

0 commit comments

Comments
 (0)