src/eric7/Utilities/ClassBrowsers/__init__.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9490
77b8d3a635b7
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
67 """ 67 """
68 ext = os.path.splitext(module)[1].lower() 68 ext = os.path.splitext(module)[1].lower()
69 path = [] if path is None else path[:] 69 path = [] if path is None else path[:]
70 70
71 if ext in __extensions["IDL"]: 71 if ext in __extensions["IDL"]:
72 from . import idlclbr 72 from . import idlclbr # __IGNORE_WARNING_I101__
73 73
74 dictionary = idlclbr.readmodule_ex(module, path) 74 dictionary = idlclbr.readmodule_ex(module, path)
75 idlclbr._modules.clear() 75 idlclbr._modules.clear()
76 elif ext in __extensions["ProtoBuf"]: 76 elif ext in __extensions["ProtoBuf"]:
77 from . import protoclbr 77 from . import protoclbr # __IGNORE_WARNING_I101__
78 78
79 dictionary = protoclbr.readmodule_ex(module, path) 79 dictionary = protoclbr.readmodule_ex(module, path)
80 protoclbr._modules.clear() 80 protoclbr._modules.clear()
81 elif ext in __extensions["Ruby"]: 81 elif ext in __extensions["Ruby"]:
82 from . import rbclbr 82 from . import rbclbr # __IGNORE_WARNING_I101__
83 83
84 dictionary = rbclbr.readmodule_ex(module, path) 84 dictionary = rbclbr.readmodule_ex(module, path)
85 rbclbr._modules.clear() 85 rbclbr._modules.clear()
86 elif ext in __extensions["JavaScript"]: 86 elif ext in __extensions["JavaScript"]:
87 from . import jsclbr 87 from . import jsclbr # __IGNORE_WARNING_I101__
88 88
89 dictionary = jsclbr.readmodule_ex(module, path) 89 dictionary = jsclbr.readmodule_ex(module, path)
90 jsclbr._modules.clear() 90 jsclbr._modules.clear()
91 elif ext in Preferences.getPython("Python3Extensions") or isPyFile: 91 elif ext in Preferences.getPython("Python3Extensions") or isPyFile:
92 from . import pyclbr 92 from . import pyclbr # __IGNORE_WARNING_I101__
93 93
94 dictionary = pyclbr.readmodule_ex(module, path, isPyFile=isPyFile) 94 dictionary = pyclbr.readmodule_ex(module, path, isPyFile=isPyFile)
95 pyclbr._modules.clear() 95 pyclbr._modules.clear()
96 else: 96 else:
97 # try Python if it is without extension 97 # try Python if it is without extension
98 from . import pyclbr 98 from . import pyclbr # __IGNORE_WARNING_I101__
99 99
100 dictionary = pyclbr.readmodule_ex(module, path) 100 dictionary = pyclbr.readmodule_ex(module, path)
101 pyclbr._modules.clear() 101 pyclbr._modules.clear()
102 102
103 return dictionary 103 return dictionary

eric ide

mercurial