Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys.set_coroutine_wrapper is removed in Python 3.8
The functions `sys.set_coroutine_wrapper` and `sys.get_coroutine_wrapper`, which were provisionally added to Python 3.5 and deprecated in Python 3.7, are removed in Python 3.8. uvloop doesn't use them since Python 3.7, but they remained defined in stdlib.pxi, leading to AttributeErrors on Python 3.8+. This makes the definition fallback to None if such functions don't exist. Fixes MagicStack#251
- Loading branch information