dont use mutables as default values
This commit is contained in:
parent
958c868c9f
commit
8d5dfd7413
1 changed files with 4 additions and 4 deletions
|
@ -304,11 +304,11 @@ def resize_image(image_source, image_output, width=None, size=None):
|
|||
output.save(image_output)
|
||||
|
||||
|
||||
def timeline(
|
||||
video, prefix,
|
||||
modes=['antialias', 'slitscan', 'keyframes', 'audio', 'data'],
|
||||
def timeline(video, prefix, modes=None, size=None):
|
||||
if modes is None:
|
||||
modes = ['antialias', 'slitscan', 'keyframes', 'audio', 'data']
|
||||
if size is None:
|
||||
size=[64, 16]
|
||||
):
|
||||
if isinstance(video, basestring):
|
||||
video = [video]
|
||||
cmd = ['../bin/oxtimelines',
|
||||
|
|
Loading…
Reference in a new issue