[pywin32-checkins] pywin32/com/win32com/client build.py,1.29,1.30
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-09-22 14:19:12
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16784 Modified Files: build.py Log Message: Fix [ 1548903 ] Incomplete gen_py cache file results from missing typelib Index: build.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/build.py,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** build.py 22 Mar 2006 08:35:13 -0000 1.29 --- build.py 22 Sep 2006 14:19:03 -0000 1.30 *************** *** 25,28 **** --- 25,29 ---- import pythoncom from pywintypes import UnicodeType, TimeType + import winerror # A string ending with a quote can not be safely triple-quoted. *************** *** 450,454 **** return pythoncom.VT_CARRAY, None, None if indir_vt == pythoncom.VT_USERDEFINED: ! resultTypeInfo = itypeinfo.GetRefTypeInfo(subrepr) resultAttr = resultTypeInfo.GetTypeAttr() typeKind = resultAttr.typekind --- 451,463 ---- return pythoncom.VT_CARRAY, None, None if indir_vt == pythoncom.VT_USERDEFINED: ! try: ! resultTypeInfo = itypeinfo.GetRefTypeInfo(subrepr) ! except pythoncom.com_error, details: ! if details[0] in [winerror.TYPE_E_CANTLOADLIBRARY, ! winerror.TYPE_E_LIBNOTREGISTERED]: ! # an unregistered interface ! return pythoncom.VT_UNKNOWN, None, None ! raise ! resultAttr = resultTypeInfo.GetTypeAttr() typeKind = resultAttr.typekind |