Skip to content

Commit 817b6b7

Browse files
authored
adjust comments (enthought#412)
1 parent 80ec49b commit 817b6b7

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

comtypes/tools/tlbparser.py

+31-31
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def parse_typeinfo(self, tinfo):
631631
return self.ParseUnion(tinfo, ta)
632632
else:
633633
print("NYI", tkind)
634-
## raise "NYI", tkind
634+
# raise "NYI", tkind
635635

636636
def parse_LibraryDescription(self):
637637
la = self.tlib.GetLibAttr()
@@ -666,46 +666,46 @@ def __init__(self, tlib):
666666
################################################################
667667
# some interesting typelibs
668668

669-
## these do NOT work:
670-
# XXX infinite loop?
671-
## path = r"mshtml.tlb" # has propputref
669+
# these do NOT work:
670+
# XXX infinite loop?
671+
# path = r"mshtml.tlb" # has propputref
672672

673-
# has SAFEARRAY
674-
# HRESULT Run(BSTR, SAFEARRAY(VARIANT)*, VARIANT*)
675-
## path = "msscript.ocx"
673+
# has SAFEARRAY
674+
# HRESULT Run(BSTR, SAFEARRAY(VARIANT)*, VARIANT*)
675+
# path = "msscript.ocx"
676676

677-
# has SAFEARRAY
678-
# HRESULT AddAddress(SAFEARRAY(BSTR)*, SAFEARRAY(BSTR)*)
679-
## path = r"c:\Programme\Microsoft Office\Office\MSWORD8.OLB" # has propputref
677+
# has SAFEARRAY
678+
# HRESULT AddAddress(SAFEARRAY(BSTR)*, SAFEARRAY(BSTR)*)
679+
# path = r"c:\Programme\Microsoft Office\Office\MSWORD8.OLB" # has propputref
680680

681-
# has SAFEARRAY:
682-
# SAFEARRAY(unsigned char) FileSignatureInfo(BSTR, long, MsiSignatureInfo)
683-
## path = r"msi.dll" # DispProperty
681+
# has SAFEARRAY:
682+
# SAFEARRAY(unsigned char) FileSignatureInfo(BSTR, long, MsiSignatureInfo)
683+
# path = r"msi.dll" # DispProperty
684684

685-
# fails packing IDLDESC
686-
## path = r"C:\Dokumente und Einstellungen\thomas\Desktop\tlb\win.tlb"
687-
# fails packing WIN32_FIND_DATA
688-
## path = r"C:\Dokumente und Einstellungen\thomas\Desktop\tlb\win32.tlb"
689-
# has a POINTER(IUnknown) as default parameter value
690-
## path = r"c:\Programme\Gemeinsame Dateien\Microsoft Shared\Speech\sapi.dll"
685+
# fails packing IDLDESC
686+
# path = r"C:\Dokumente und Einstellungen\thomas\Desktop\tlb\win.tlb"
687+
# fails packing WIN32_FIND_DATA
688+
# path = r"C:\Dokumente und Einstellungen\thomas\Desktop\tlb\win32.tlb"
689+
# has a POINTER(IUnknown) as default parameter value
690+
# path = r"c:\Programme\Gemeinsame Dateien\Microsoft Shared\Speech\sapi.dll"
691691

692692

693-
## path = r"hnetcfg.dll"
694-
## path = r"simpdata.tlb"
695-
## path = r"nscompat.tlb"
696-
## path = r"stdole32.tlb"
693+
# path = r"hnetcfg.dll"
694+
# path = r"simpdata.tlb"
695+
# path = r"nscompat.tlb"
696+
# path = r"stdole32.tlb"
697697

698-
## path = r"shdocvw.dll"
698+
# path = r"shdocvw.dll"
699699

700-
## path = r"c:\Programme\Microsoft Office\Office\MSO97.DLL"
701-
## path = r"PICCLP32.OCX" # DispProperty
702-
## path = r"MSHFLXGD.OCX" # DispProperty, propputref
703-
## path = r"scrrun.dll" # propput AND propputref on IDictionary::Item
704-
## path = r"C:\Dokumente und Einstellungen\thomas\Desktop\tlb\threadapi.tlb"
700+
# path = r"c:\Programme\Microsoft Office\Office\MSO97.DLL"
701+
# path = r"PICCLP32.OCX" # DispProperty
702+
# path = r"MSHFLXGD.OCX" # DispProperty, propputref
703+
# path = r"scrrun.dll" # propput AND propputref on IDictionary::Item
704+
# path = r"C:\Dokumente und Einstellungen\thomas\Desktop\tlb\threadapi.tlb"
705705

706-
## path = r"..\samples\BITS\bits2_0.tlb"
706+
# path = r"..\samples\BITS\bits2_0.tlb"
707707

708-
## path = r"c:\vc98\include\activscp.tlb"
708+
# path = r"c:\vc98\include\activscp.tlb"
709709

710710
def get_tlib_filename(tlib):
711711
# seems if the typelib is not registered, there's no way to

0 commit comments

Comments
 (0)