Utilities/ClassBrowsers/pyclbr.py

changeset 2965
d133c7edd88a
parent 2769
8cbebde7a984
child 2997
7f0ef975da9e
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
203 self.identifiers = [e.replace('"', '').replace("'", "").strip() \ 203 self.identifiers = [e.replace('"', '').replace("'", "").strip() \
204 for e in idents.split(',')] 204 for e in idents.split(',')]
205 205
206 206
207 def readmodule_ex(module, path=[], inpackage=False, isPyFile=False): 207 def readmodule_ex(module, path=[], inpackage=False, isPyFile=False):
208 ''' 208 """
209 Read a module file and return a dictionary of classes. 209 Read a module file and return a dictionary of classes.
210 210
211 Search for MODULE in PATH and sys.path, read and parse the 211 Search for MODULE in PATH and sys.path, read and parse the
212 module and return a dictionary with one entry for each class 212 module and return a dictionary with one entry for each class
213 found in the module. 213 found in the module.
214 214
215 @param module name of the module file (string) 215 @param module name of the module file (string)
216 @param path path the module should be searched in (list of strings) 216 @param path path the module should be searched in (list of strings)
217 @param inpackage flag indicating a module inside a package is scanned 217 @param inpackage flag indicating a module inside a package is scanned
218 @param isPyFile flag indicating a Python file (boolean)
218 @return the resulting dictionary 219 @return the resulting dictionary
219 ''' 220 """
220 global _modules 221 global _modules
221 222
222 dict = {} 223 dict = {}
223 dict_counts = {} 224 dict_counts = {}
224 225

eric ide

mercurial