Commit 3f5d48be authored by Serhiy Storchaka's avatar Serhiy Storchaka

Partially revert 3603bae63c13 (issue23326) for asyncio.

parent ba6ea9b2
......@@ -178,6 +178,10 @@ class TimerHandle(Handle):
self._cancelled == other._cancelled)
return NotImplemented
def __ne__(self, other):
equal = self.__eq__(other)
return NotImplemented if equal is NotImplemented else not equal
def cancel(self):
if not self._cancelled:
self._loop._timer_handle_cancelled(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment