Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40b91ce

Browse filesBrowse files
committed
Clean-ups.
1 parent 86c7b2a commit 40b91ce
Copy full SHA for 40b91ce

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎lib/matplotlib/animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/animation.py
+5-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.