summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-30 19:25:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-30 19:25:16 (GMT)
commit3f5d48bead8e937aef6f94a3211406270c1a5f8f (patch)
treeab59c5a5b0756f861a5a9b2ebd8c87e3d8c06d70 /Lib
parentba6ea9b237572f301e20416dceb3573538b89a1e (diff)
downloadcpython-3f5d48bead8e937aef6f94a3211406270c1a5f8f.zip
cpython-3f5d48bead8e937aef6f94a3211406270c1a5f8f.tar.gz
cpython-3f5d48bead8e937aef6f94a3211406270c1a5f8f.tar.bz2
Partially revert 3603bae63c13 (issue23326) for asyncio.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/events.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 01320cd..8a7bb81 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -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)