mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 19:52:48 +01:00
functemplate: delete try/except/print debug stmts
This commit is contained in:
parent
454da9dc7b
commit
dae1bf026f
1 changed files with 1 additions and 5 deletions
|
|
@ -124,11 +124,7 @@ def compile_func(arg_names, statements, name='_the_func', debug=False):
|
|||
mod = ast.Module([func_def])
|
||||
ast.fix_missing_locations(mod)
|
||||
|
||||
try:
|
||||
prog = compile(mod, '<generated>', 'exec')
|
||||
except:
|
||||
print(ast.dump(mod))
|
||||
raise
|
||||
prog = compile(mod, '<generated>', 'exec')
|
||||
|
||||
# Debug: show bytecode.
|
||||
if debug:
|
||||
|
|
|
|||
Loading…
Reference in a new issue