##// END OF EJS Templates
use try/except also for Py2....
Matthias Bussonnier -
Show More
@@ -11,13 +11,12 b' import sys'
11 11 from traitlets.config.configurable import Configurable
12 12 from IPython.utils.path import ensure_dir_exists
13 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
14
15 try:
16 from importlib import reload
17 except ImportError :
18 ## deprecated since 3.4
19 from imp import reload
21 20
22 21 #-----------------------------------------------------------------------------
23 22 # Main class
General Comments 0
You need to be logged in to leave comments. Login now