[issue16259] Replace exec() in test.regrtest with __import__

R. David Murray report at bugs.python.org
Wed Oct 17 14:16:55 CEST 2012


R. David Murray added the comment:

That's a safe use of exec, since the name is coming from a loaded module and not from user input.  Still, load_module would be cleaner.

However, the real fix is to just delete that code.  It is dead code...we always pass the indirect_test argument to dash_R.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16259>
_______________________________________


More information about the Python-bugs-list mailing list