From a6f46df097f935feb7d87b09d58ff8ef79fb576b Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Mon, 28 Mar 2011 22:09:28 +0200 Subject: [PATCH] Fixed $copy function not working when evaluating script in options. --- picard/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/script.py b/picard/script.py index 438c2a409..6e4ced453 100644 --- a/picard/script.py +++ b/picard/script.py @@ -346,7 +346,7 @@ def func_copy(parser, new, old): new = "~" + new[1:] if old.startswith("_"): old = "~" + old[1:] - parser.context[new] = parser.context.getall(old)[:] + parser.context[new] = parser.context.get(old, [])[:] return "" def func_trim(parser, text, char=None):