Skip to content

adjust comment indentations in files under the .../comtypes/client/ #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions comtypes/client/_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def FindOutgoingInterface(source):
logger.debug("%s using sinkinterface from clsid %s", source, interface)
return interface

## interface = find_single_connection_interface(source)
## if interface:
## return interface
# interface = find_single_connection_interface(source)
# if interface:
# return interface

raise TypeError("cannot determine source interface")

Expand Down Expand Up @@ -260,7 +260,7 @@ def PumpEvents(timeout):
handles = _handles_type(hevt)
RPC_S_CALLPENDING = -2147417835

## @ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_uint)
# @ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_uint)
def HandlerRoutine(dwCtrlType):
if dwCtrlType == 0: # CTRL+C
ctypes.windll.kernel32.SetEvent(hevt)
Expand Down
10 changes: 5 additions & 5 deletions comtypes/client/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def _FlagAsMethod(self, *names):
def __getattr__(self, name):
if name.startswith("__") and name.endswith("__"):
raise AttributeError(name)
## tc = self._comobj.GetTypeInfo(0).QueryInterface(comtypes.typeinfo.ITypeComp)
## dispid = tc.Bind(name)[1].memid
# tc = self._comobj.GetTypeInfo(0).QueryInterface(comtypes.typeinfo.ITypeComp)
# dispid = tc.Bind(name)[1].memid
dispid = self._ids.get(name)
if not dispid:
dispid = self._comobj.GetIDsOfNames(name)[0]
Expand Down Expand Up @@ -146,9 +146,9 @@ def __setattr__(self, name, value):
def __iter__(self):
return _Collection(self.__enum())

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

class _Collection(object):
def __init__(self, enum):
Expand Down
2 changes: 1 addition & 1 deletion comtypes/client/lazybind.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(self, comobj, tinfo):
self.__dict__["_tinfo"] = tinfo
self.__dict__["_tcomp"] = tinfo.GetTypeComp()
self.__dict__["_tdesc"] = {}
## self.__dict__["_iid"] = tinfo.GetTypeAttr().guid
# self.__dict__["_iid"] = tinfo.GetTypeAttr().guid

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