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

Skip to content

Commit 4e0a708

Browse files
authored
Merge pull request #13228 from erihe251/patch-1
Import `reload` from `importlib` instead of deprecated `imp`
2 parents d077cd1 + 3206fcd commit 4e0a708

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)