mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
Merge pull request #2017 from jrobeson/py3-compat-exec
use exec() in a python3 compatible way
This commit is contained in:
commit
a97c9b8c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue