##// END OF EJS Templates
remove unnecessary loop to import manualy modules in `completer lib`
Diego Garcia -
r22955:3754470f
parent child
Show More
@@ -159,9 +159,6 def try_import(mod, only_modules=False):
159 m = import_module(mod)
159 m = import_module(mod)
160 except:
160 except:
161 return []
161 return []
162 mods = mod.split('.')
163 for module in mods[1:]:
164 m = getattr(m, module)
165
162
166 m_is_init = hasattr(m, '__file__') and '__init__' in m.__file__
163 m_is_init = hasattr(m, '__file__') and '__init__' in m.__file__
167
164
General Comments 0
You need to be logged in to leave comments. Login now