| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,6 @@ cdef aio_isfuture = getattr(asyncio, 'isfuture', None) | |||
| 44 | 44 | cdef aio_get_running_loop = getattr(asyncio, '_get_running_loop', None) | |
| 45 | 45 | cdef aio_set_running_loop = getattr(asyncio, '_set_running_loop', None) | |
| 46 | 46 | cdef aio_debug_wrapper = getattr(asyncio.coroutines, 'debug_wrapper', None) | |
| 47 | - cdef aio_AbstractChildWatcher = asyncio.AbstractChildWatcher | ||
| 48 | 47 | cdef aio_Transport = asyncio.Transport | |
| 49 | 48 | cdef aio_FlowControlMixin = asyncio.transports._FlowControlMixin | |
| 50 | 49 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2915,24 +2915,6 @@ cdef class Loop: | |||
| 2915 | 2915 | "coroutines cannot be used with add_signal_handler()") | |
| 2916 | 2916 | ||
| 2917 | 2917 | if sig == uv.SIGCHLD: | |
| 2918 | - if (hasattr(callback, '__self__') and | ||
| 2919 | - isinstance(callback.__self__, aio_AbstractChildWatcher)): | ||
| 2920 | - | ||
| 2921 | - warnings_warn( | ||
| 2922 | - "!!! asyncio is trying to install its ChildWatcher for " | ||
| 2923 | - "SIGCHLD signal !!!\n\nThis is probably because a uvloop " | ||
| 2924 | - "instance is used with asyncio.set_event_loop(). " | ||
| 2925 | - "The correct way to use uvloop is to install its policy: " | ||
| 2926 | - "`asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())`" | ||
| 2927 | - "\n\n", RuntimeWarning, source=self) | ||
| 2928 | - | ||
| 2929 | - # TODO: ideally we should always raise an error here, | ||
| 2930 | - # but that would be a backwards incompatible change, | ||
| 2931 | - # because we recommended using "asyncio.set_event_loop()" | ||
| 2932 | - # in our README. Need to start a deprecation period | ||
| 2933 | - # at some point to turn this warning into an error. | ||
| 2934 | - return | ||
| 2935 | - | ||
| 2936 | 2918 | raise RuntimeError( | |
| 2937 | 2919 | 'cannot add a signal handler for SIGCHLD: it is used ' | |
| 2938 | 2920 | 'by the event loop to track subprocesses') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments