8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c523ce0 commit a1fa657Copy full SHA for a1fa657
Lib/asyncio/events.py
@@ -18,6 +18,7 @@
18
import subprocess
19
import sys
20
import threading
21
+import warnings
22
23
from . import format_helpers
24
@@ -787,6 +788,9 @@ def set_event_loop_policy(policy):
787
788
"""Set the current event loop policy.
789
790
If policy is None, the default policy is restored."""
791
+ warnings._deprecated("set_event_loop_policy",
792
+ "{name!r} is deprecated as of Python 3.13 and will be "
793
+ "removed in Python {remove}.", remove=(3, 15))
794
global _event_loop_policy
795
if policy is not None and not isinstance(policy, AbstractEventLoopPolicy):
796
raise TypeError(f"policy must be an instance of AbstractEventLoopPolicy or None, not '{type(policy).__name__}'")
0 commit comments