From d6d7341314d171d2d9b86311000299746e4b5f79 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Thu, 26 May 2016 06:14:40 -0400 Subject: [PATCH] use exec() in a python3 compatible way --- beets/util/functemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/util/functemplate.py b/beets/util/functemplate.py index 5764807c3..b4097baba 100644 --- a/beets/util/functemplate.py +++ b/beets/util/functemplate.py @@ -134,7 +134,7 @@ def compile_func(arg_names, statements, name='_the_func', debug=False): dis.dis(const) the_locals = {} - exec prog in {}, the_locals + exec(prog, {}, the_locals) return the_locals[name]