Utilities/ClassBrowsers/idlclbr.py

changeset 5651
982465f8389c
parent 5604
b047181a4a33
child 5977
8a0ec75b0f73
equal deleted inserted replaced
5650:4c52f07c186e 5651:982465f8389c
179 """ 179 """
180 ClbrBaseClasses.Attribute.__init__(self, module, name, file, lineno) 180 ClbrBaseClasses.Attribute.__init__(self, module, name, file, lineno)
181 VisibilityMixin.__init__(self) 181 VisibilityMixin.__init__(self)
182 182
183 183
184 def readmodule_ex(module, path=[]): 184 def readmodule_ex(module, path=None):
185 """ 185 """
186 Read a CORBA IDL file and return a dictionary of classes, functions and 186 Read a CORBA IDL file and return a dictionary of classes, functions and
187 modules. 187 modules.
188 188
189 @param module name of the CORBA IDL file (string) 189 @param module name of the CORBA IDL file (string)
199 # we've seen this file before... 199 # we've seen this file before...
200 return _modules[module] 200 return _modules[module]
201 201
202 # search the path for the file 202 # search the path for the file
203 f = None 203 f = None
204 fullpath = list(path) 204 fullpath = [] if path is None else path[:]
205 f, file, (suff, mode, type) = ClassBrowsers.find_module(module, fullpath) 205 f, file, (suff, mode, type) = ClassBrowsers.find_module(module, fullpath)
206 if f: 206 if f:
207 f.close() 207 f.close()
208 if type not in SUPPORTED_TYPES: 208 if type not in SUPPORTED_TYPES:
209 # not CORBA IDL source, can't do anything with this module 209 # not CORBA IDL source, can't do anything with this module

eric ide

mercurial