File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -106,24 +106,6 @@ def stop(self):
106106 super (LoudEventLoop , self ).stop ()
107107
108108
109- # class LoudEventLoopPolicy(asyncio.unix_events.DefaultEventLoopPolicy):
110- # DefaultEventLoopPolicy is deprecated in Python 3.14 and planed to remove in 3.16
111- # Use platform-specific event loop policy as base class
112- if sys .platform == 'win32' :
113- _BaseEventLoopPolicy = asyncio .WindowsProactorEventLoopPolicy
114- else :
115- # On Linux and other Unix-like systems
116- try :
117- _BaseEventLoopPolicy = asyncio .unix_events ._UnixDefaultEventLoopPolicy
118- except AttributeError :
119- # Fallback for older Python versions
120- _BaseEventLoopPolicy = asyncio .DefaultEventLoopPolicy
121-
122-
123- class LoudEventLoopPolicy (_BaseEventLoopPolicy ):
124- _loop_factory = LoudEventLoop
125-
126-
127109def thread_secure_get_event_loop (logger_name = "moler.runner.asyncio" ):
128110 """
129111 Need securing since asyncio.get_event_loop() when called from new thread
You can’t perform that action at this time.
0 commit comments