##// END OF EJS Templates
remove the code specific to 2.x
Srinivas Reddy Thatiparthy -
Show More
@@ -22,14 +22,8 b' import os'
22 import re
22 import re
23 import sys
23 import sys
24 from importlib import import_module
24 from importlib import import_module
25
26 try:
27 # Python >= 3.3
28 from importlib.machinery import all_suffixes
25 from importlib.machinery import all_suffixes
29 _suffixes = all_suffixes()
26
30 except ImportError:
31 from imp import get_suffixes
32 _suffixes = [ s[0] for s in get_suffixes() ]
33
27
34 # Third-party imports
28 # Third-party imports
35 from time import time
29 from time import time
@@ -47,6 +41,7 b' from IPython import get_ipython'
47 #-----------------------------------------------------------------------------
41 #-----------------------------------------------------------------------------
48 # Globals and constants
42 # Globals and constants
49 #-----------------------------------------------------------------------------
43 #-----------------------------------------------------------------------------
44 _suffixes = all_suffixes()
50
45
51 # Time in seconds after which the rootmodules will be stored permanently in the
46 # Time in seconds after which the rootmodules will be stored permanently in the
52 # ipython ip.db database (kept in the user's .ipython dir).
47 # ipython ip.db database (kept in the user's .ipython dir).
General Comments 0
You need to be logged in to leave comments. Login now