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