You probably wanted importlib.reload()
.
from importlib import reload
In Python 2.x, this was a builtin, but in 3.x, it’s in the importlib
module.
Note that using reload()
outside of the interpreter is generally unnecessary, what were you trying to do here?