[Python-checkins] cpython: Partially revert 3603bae63c13 (issue23326) for asyncio.

serhiy.storchaka python-checkins at python.org
Mon Mar 30 21:26:02 CEST 2015


https://hg.python.org/cpython/rev/e881444f078f
changeset: 95301:e881444f078f
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Mar 30 22:25:16 2015 +0300
summary:
 Partially revert 3603bae63c13 (issue23326) for asyncio.
files:
 Lib/asyncio/events.py | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -178,6 +178,10 @@
 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)
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /