Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3206fcd

Browse files
authored
Import reload from importlib instead of imp
The `imp` module was deprecated in Python 3.4 in favor of `importlib`, and the function `imp.reload` is now just a wrapper for `importlib.reload`.
1 parent d077cd1 commit 3206fcd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

IPython/extensions/autoreload.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@
121121
import types
122122
import weakref
123123
import gc
124-
from importlib import import_module
124+
from importlib import import_module, reload
125125
from importlib.util import source_from_cache
126-
from imp import reload
127126

128127
# ------------------------------------------------------------------------------
129128
# Autoreload functionality

0 commit comments

Comments
 (0)