The imp module was deprecated in Python 3.4 in favor of the importlib module. From the documentation for the imp module:
Deprecated since version 3.4: The
imppackage is pending deprecation in favor ofimportlib.
So, you should be using the reload function from there:
>>> import importlib
>>> importlib.reload
<function reload at 0x01BA4030>
>>> importlib.reload(the_module)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With