Open paultag opened 9 years ago
__import__ is a pretty low level guy (also, on 3.x, it's a wrapper around importlib anyway), and in general, the common practice is to use importlib.import_module.
__import__
importlib.import_module
I'll send in a PR, but I'm just filing some tickets to remember later.
Nice -- PR welcome!
Reference material: https://github.com/openelections/openelections-core/issues/217 https://github.com/openelections/openelections-core/commit/9f8dc2d4a594ee0ccaec24d81d0d79ad99ff3d67 https://github.com/openelections/openelections-core/issues/227
__import__
is a pretty low level guy (also, on 3.x, it's a wrapper around importlib anyway), and in general, the common practice is to useimportlib.import_module
.I'll send in a PR, but I'm just filing some tickets to remember later.