[pywin32-checkins] pywin32/Pythonwin/pywin/framework/editor ModuleBrowser.py,1.7,1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-03 07:34:27
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/editor In directory sc8-pr-cvs1:/tmp/cvs-serv5281 Modified Files: ModuleBrowser.py Log Message: Oops - it looks like we still get fed with strings occasionally. Index: ModuleBrowser.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/editor/ModuleBrowser.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ModuleBrowser.py 3 Nov 2003 05:35:55 -0000 1.7 --- ModuleBrowser.py 3 Nov 2003 07:34:24 -0000 1.8 *************** *** 53,61 **** class HierListCLBRClass(HierListCLBRItem): def __init__(self, clbrclass, suffix = ""): ! name = clbrclass.name ! file = clbrclass.file ! lineno = clbrclass.lineno ! self.super = clbrclass.super ! self.methods = clbrclass.methods HierListCLBRItem.__init__(self, name, file, lineno, suffix) def __cmp__(self,other): --- 53,66 ---- class HierListCLBRClass(HierListCLBRItem): def __init__(self, clbrclass, suffix = ""): ! try: ! name = clbrclass.name ! file = clbrclass.file ! lineno = clbrclass.lineno ! self.super = clbrclass.super ! self.methods = clbrclass.methods ! except AttributeError: ! name = clbrclass ! file = lineno = None ! self.super = []; self.methods = {} HierListCLBRItem.__init__(self, name, file, lineno, suffix) def __cmp__(self,other): |