Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f18699 commit aeb226aCopy full SHA for aeb226a
1 file changed
IPython/core/extensions.py
@@ -11,13 +11,12 @@
11
from traitlets.config.configurable import Configurable
12
from IPython.utils.path import ensure_dir_exists
13
from traitlets import Instance
14
-from IPython.utils.py3compat import PY3
15
-if PY3:
16
- try:
17
- from importlib import reload
18
- except ImportError :
19
- ## deprecated since 3.4
20
- from imp import reload
+
+try:
+ from importlib import reload
+except ImportError :
+ ## deprecated since 3.4
+ from imp import reload
21
22
#-----------------------------------------------------------------------------
23
# Main class
0 commit comments