[pywin32-checkins] pywin32/com/win32com/client genpy.py,1.47,1.48
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-09-20 12:46:54
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10130 Modified Files: genpy.py Log Message: Ignore errors loading a dependent typelib. Index: genpy.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** genpy.py 27 Jun 2005 12:40:05 -0000 1.47 --- genpy.py 20 Sep 2005 12:46:46 -0000 1.48 *************** *** 665,669 **** for j in range(attr[8]): flags = info.GetImplTypeFlags(j) ! refType = info.GetRefTypeInfo(info.GetRefTypeOfImplType(j)) refAttr = refType.GetTypeAttr() child_infos.append( (info, refAttr.typekind, refType, refType.GetDocumentation(-1), refAttr, flags) ) --- 665,673 ---- for j in range(attr[8]): flags = info.GetImplTypeFlags(j) ! try: ! refType = info.GetRefTypeInfo(info.GetRefTypeOfImplType(j)) ! except pythoncom.com_error: ! # Can't load a dependent typelib? ! continue refAttr = refType.GetTypeAttr() child_infos.append( (info, refAttr.typekind, refType, refType.GetDocumentation(-1), refAttr, flags) ) |