Changeset 32 for branches/mk/cheesecake/codeparser.py
- Timestamp:
- 05/31/06 08:50:14 (6 years ago)
- Files:
-
- branches/mk/cheesecake/codeparser.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/codeparser.py
r11 r32 21 21 self.functions = [] 22 22 self.docstrings = {} 23 23 24 24 (path, filename) = os.path.split(pyfile) 25 25 (module, ext) = os.path.splitext(filename) … … 35 35 fullname = obj.fullName() 36 36 if isinstance(obj, Module): 37 self.modules.append( obj.fullName())37 self.modules.append(fullname) 38 38 if isinstance(obj, Class): 39 self.classes.append( obj.fullName())39 self.classes.append(fullname) 40 40 if isinstance(obj, Function): 41 41 self.method_func.append(fullname) 42 if obj.docstring:42 if isinstance(obj.docstring, str) and obj.docstring.strip(): 43 43 self.docstrings[fullname] = 1 44 44
