Using exec in the assembler is okay

This commit is contained in:
vieira 2017-11-09 00:12:50 +00:00 committed by Brian May
parent 6a488b3db9
commit 9b315746d1

View File

@ -21,7 +21,7 @@ while 1:
setattr(sys.modules[parent], parent_name, module) setattr(sys.modules[parent], parent_name, module)
code = compile(content, name, "exec") code = compile(content, name, "exec")
exec(code, module.__dict__) exec(code, module.__dict__) # nosec
sys.modules[name] = module sys.modules[name] = module
else: else:
break break