Skip to content

Commit 1ab713b

Browse files
committed
adjust comments (enthought#414)
(cherry picked from commit a6fc08b)
1 parent 9c8b59e commit 1ab713b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

comtypes/client/_events.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def FindOutgoingInterface(source):
7373
logger.debug("%s using sinkinterface from clsid %s", source, interface)
7474
return interface
7575

76-
## interface = find_single_connection_interface(source)
77-
## if interface:
78-
## return interface
76+
# interface = find_single_connection_interface(source)
77+
# if interface:
78+
# return interface
7979

8080
raise TypeError("cannot determine source interface")
8181

@@ -260,7 +260,7 @@ def PumpEvents(timeout):
260260
handles = _handles_type(hevt)
261261
RPC_S_CALLPENDING = -2147417835
262262

263-
## @ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_uint)
263+
# @ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_uint)
264264
def HandlerRoutine(dwCtrlType):
265265
if dwCtrlType == 0: # CTRL+C
266266
ctypes.windll.kernel32.SetEvent(hevt)

comtypes/client/dynamic.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def _FlagAsMethod(self, *names):
104104
def __getattr__(self, name):
105105
if name.startswith("__") and name.endswith("__"):
106106
raise AttributeError(name)
107-
## tc = self._comobj.GetTypeInfo(0).QueryInterface(comtypes.typeinfo.ITypeComp)
108-
## dispid = tc.Bind(name)[1].memid
107+
# tc = self._comobj.GetTypeInfo(0).QueryInterface(comtypes.typeinfo.ITypeComp)
108+
# dispid = tc.Bind(name)[1].memid
109109
dispid = self._ids.get(name)
110110
if not dispid:
111111
dispid = self._comobj.GetIDsOfNames(name)[0]
@@ -146,9 +146,9 @@ def __setattr__(self, name, value):
146146
def __iter__(self):
147147
return _Collection(self.__enum())
148148

149-
## def __setitem__(self, index, value):
150-
## self._comobj.Invoke(-3, index, value,
151-
## _invkind=comtypes.automation.DISPATCH_PROPERTYPUT|comtypes.automation.DISPATCH_PROPERTYPUTREF)
149+
# def __setitem__(self, index, value):
150+
# self._comobj.Invoke(-3, index, value,
151+
# _invkind=comtypes.automation.DISPATCH_PROPERTYPUT|comtypes.automation.DISPATCH_PROPERTYPUTREF)
152152

153153
class _Collection(object):
154154
def __init__(self, enum):

comtypes/client/lazybind.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __init__(self, comobj, tinfo):
111111
self.__dict__["_tinfo"] = tinfo
112112
self.__dict__["_tcomp"] = tinfo.GetTypeComp()
113113
self.__dict__["_tdesc"] = {}
114-
## self.__dict__["_iid"] = tinfo.GetTypeAttr().guid
114+
# self.__dict__["_iid"] = tinfo.GetTypeAttr().guid
115115

116116
def __bind(self, name, invkind):
117117
"""Bind (name, invkind) and return a FuncDesc instance or

0 commit comments

Comments
 (0)