[pywin32-checkins] pywin32/com/win32com/client dynamic.py, 1.22.2.1, 1.22.2.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-08-31 09:47:59
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26353 Modified Files: Tag: py3k dynamic.py Log Message: Fix some new-style exception syntax Index: dynamic.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/dynamic.py,v retrieving revision 1.22.2.1 retrieving revision 1.22.2.2 diff -C2 -d -r1.22.2.1 -r1.22.2.2 *** dynamic.py 29 Aug 2008 08:58:53 -0000 1.22.2.1 --- dynamic.py 31 Aug 2008 09:48:03 -0000 1.22.2.2 *************** *** 481,485 **** ret = self._oleobj_.Invoke(retEntry.dispid,0,invoke_type,1) except pythoncom.com_error as details: ! if details[0] in ERRORS_BAD_CONTEXT: # May be a method. self._olerepr_.mapFuncs[attr] = retEntry --- 481,485 ---- ret = self._oleobj_.Invoke(retEntry.dispid,0,invoke_type,1) except pythoncom.com_error as details: ! if details.args[0] in ERRORS_BAD_CONTEXT: # May be a method. self._olerepr_.mapFuncs[attr] = retEntry |