Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20298
Modified Files:
Tag: py3k
dynamic.py
Log Message:
isinstance in Python 3 will only accept a tuple of types
Index: dynamic.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/dynamic.py,v
retrieving revision 1.22.2.7
retrieving revision 1.22.2.8
diff -C2 -d -r1.22.2.7 -r1.22.2.8
*** dynamic.py 4 Dec 2008 05:08:41 -0000 1.22.2.7
--- dynamic.py 12 Dec 2008 01:25:54 -0000 1.22.2.8
***************
*** 73,77 ****
dispatchType = pythoncom.TypeIIDs[pythoncom.IID_IDispatch]
iunkType = pythoncom.TypeIIDs[pythoncom.IID_IUnknown]
! _GoodDispatchTypes=[str, IIDType, str]
_defaultDispatchItem=build.DispatchItem
--- 73,79 ----
dispatchType = pythoncom.TypeIIDs[pythoncom.IID_IDispatch]
iunkType = pythoncom.TypeIIDs[pythoncom.IID_IUnknown]
!
! ## Py3k requires a tuple for isinstance
! _GoodDispatchTypes=(str, IIDType)
_defaultDispatchItem=build.DispatchItem
|