Update of /cvsroot/pywin32/pywin32/com/win32com
In directory sc8-pr-cvs1:/tmp/cvs-serv5277
Modified Files:
universal.py
Log Message:
Drop the old warning that is printed even when not relevant.
Index: universal.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/universal.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** universal.py 26 Jul 2003 00:53:55 -0000 1.11
--- universal.py 2 Nov 2003 10:09:05 -0000 1.12
***************
*** 79,87 ****
cb = _univgw.SizeOfVT(pythoncom.VT_PTR)[1]
elif t == pythoncom.VT_RECORD:
! try:
! import warnings
! warnings.warn("warning: records are known to not work for vtable interfaces")
! except ImportError:
! print "warning: records are known to not work for vtable interfaces"
cb = _univgw.SizeOfVT(pythoncom.VT_PTR)[1]
#cb = typeInfo.GetTypeAttr().cbSizeInstance
--- 79,90 ----
cb = _univgw.SizeOfVT(pythoncom.VT_PTR)[1]
elif t == pythoncom.VT_RECORD:
! # Just because a type library uses records doesn't mean the user
! # is trying to. We need to better place to warn about this, but it
! # isn't here.
! #try:
! # import warnings
! # warnings.warn("warning: records are known to not work for vtable interfaces")
! #except ImportError:
! # print "warning: records are known to not work for vtable interfaces"
cb = _univgw.SizeOfVT(pythoncom.VT_PTR)[1]
#cb = typeInfo.GetTypeAttr().cbSizeInstance
|