]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
asyncio: Sync with mainstream
authorYury Selivanov <yselivanov@sprymix.com>
Tue, 4 Aug 2015 19:37:24 +0000 (15:37 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Tue, 4 Aug 2015 19:37:24 +0000 (15:37 -0400)
Lib/asyncio/base_events.py

index 5a536a22b7b3f3e19e7042ed129e352a933f5b6f..f6cc88f098ca2ec5c220f37d168811c9bc66aa69 100644 (file)
@@ -1205,7 +1205,7 @@ class BaseEventLoop(events.AbstractEventLoop):
             return
 
         enabled = bool(enabled)
-        if self._coroutine_wrapper_set is enabled:
+        if self._coroutine_wrapper_set == enabled:
             return
 
         wrapper = coroutines.debug_wrapper