From b6a41811a55a077a64e501d0aa5eec5a7dc95f4f Mon Sep 17 00:00:00 2001 From: junkmd <45822440+junkmd@users.noreply.github.com> Date: Sat, 31 Dec 2022 11:51:00 +0900 Subject: [PATCH] remove `__cmp__` methods in `client.dynamic` (#434) --- comtypes/client/dynamic.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/comtypes/client/dynamic.py b/comtypes/client/dynamic.py index def9e266..88b1b21f 100644 --- a/comtypes/client/dynamic.py +++ b/comtypes/client/dynamic.py @@ -73,11 +73,6 @@ def __enum(self): e = self._comobj.Invoke(-4) # DISPID_NEWENUM return e.QueryInterface(comtypes.automation.IEnumVARIANT) - def __cmp__(self, other): - if not isinstance(other, _Dispatch): - return 1 - return cmp(self._comobj, other._comobj) - def __hash__(self): return hash(self._comobj)