dont use mutables as default values

This commit is contained in:
j 2012-05-21 14:46:48 +02:00
parent 958c868c9f
commit 8d5dfd7413

View file

@ -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',