Per documentation available here, the imp module is deprecated since version 3.4 and will be removed in version 3.12. Additionally, this module is deprecated in favor of importlib.
The find_module and load_module methods are to be replaced with a combination of importlib.util.spec_from_file_location() and importlib.util.module_from_spec() respectively, since imp.load_module was previously called directly with file path arguments
Fixes #300.
Per documentation available here, the imp module is deprecated since version 3.4 and will be removed in version 3.12. Additionally, this module is deprecated in favor of importlib.
The
find_module
andload_module
methods are to be replaced with a combination of importlib.util.spec_from_file_location() and importlib.util.module_from_spec() respectively, sinceimp.load_module
was previously called directly with file path arguments