Skip to content

Commit def2021

Browse files
dev
1 parent 668bd59 commit def2021

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

moler/asyncio_runner.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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-
127109
def thread_secure_get_event_loop(logger_name="moler.runner.asyncio"):
128110
"""
129111
Need securing since asyncio.get_event_loop() when called from new thread

0 commit comments

Comments
 (0)