From: Serhiy Storchaka Date: Mon, 30 Mar 2015 19:25:16 +0000 (+0300) Subject: Partially revert 3603bae63c13 (issue23326) for asyncio. X-Git-Tag: v3.5.0a4~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f5d48bead8e937aef6f94a3211406270c1a5f8f;p=thirdparty%2FPython%2Fcpython.git Partially revert 3603bae63c13 (issue23326) for asyncio. --- diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 01320cdf62bf..8a7bb814a319 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)