Utilities/ClassBrowsers/pyclbr.py

changeset 97
c4086afea02b
parent 45
9a18f4dbb493
child 428
58405c24aa09
child 445
accf2f63d364
equal deleted inserted replaced
96:9624a110667d 97:c4086afea02b
12 This is module is based on pyclbr found in the Python 2.2.2 distribution. 12 This is module is based on pyclbr found in the Python 2.2.2 distribution.
13 """ 13 """
14 14
15 15
16 import sys 16 import sys
17 import os
18 import imp 17 import imp
19 import re 18 import re
20 19
21 import Utilities 20 import Utilities
22 import Utilities.ClassBrowsers as ClassBrowsers 21 import Utilities.ClassBrowsers as ClassBrowsers
202 @param module name of the module file (string) 201 @param module name of the module file (string)
203 @param path path the module should be searched in (list of strings) 202 @param path path the module should be searched in (list of strings)
204 @param inpackage flag indicating a module inside a package is scanned 203 @param inpackage flag indicating a module inside a package is scanned
205 @return the resulting dictionary 204 @return the resulting dictionary
206 ''' 205 '''
207 206 global _modules
207
208 dict = {} 208 dict = {}
209 dict_counts = {} 209 dict_counts = {}
210 210
211 if module in _modules: 211 if module in _modules:
212 # we've seen this module before... 212 # we've seen this module before...

eric ide

mercurial