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