forked from 0x2620/pandora
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)
|
output.save(image_output)
|
||||||
|
|
||||||
|
|
||||||
def timeline(
|
def timeline(video, prefix, modes=None, size=None):
|
||||||
video, prefix,
|
if modes is None:
|
||||||
modes=['antialias', 'slitscan', 'keyframes', 'audio', 'data'],
|
modes = ['antialias', 'slitscan', 'keyframes', 'audio', 'data']
|
||||||
|
if size is None:
|
||||||
size=[64, 16]
|
size=[64, 16]
|
||||||
):
|
|
||||||
if isinstance(video, basestring):
|
if isinstance(video, basestring):
|
||||||
video = [video]
|
video = [video]
|
||||||
cmd = ['../bin/oxtimelines',
|
cmd = ['../bin/oxtimelines',
|
||||||
|
|
Loading…
Reference in a new issue