File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
- from asyncio .events import BaseDefaultEventLoopPolicy as __BasePolicy
2
-
1
+ from ._compat import _BaseEventLoopPolicy as __BasePolicy
3
2
from ._rloop import __version__ as __version__
4
3
from .loop import RLoop
5
4
Original file line number Diff line number Diff line change 3
3
4
4
_PYV = int (sys .version_info .major * 100 + sys .version_info .minor )
5
5
_PY_311 = 311
6
+ _PY_314 = 314
7
+
8
+ if _PYV < 314 :
9
+ from asyncio .events import BaseDefaultEventLoopPolicy as _BaseEventLoopPolicy
10
+ else :
11
+ from asyncio .events import _BaseDefaultEventLoopPolicy as _BaseEventLoopPolicy # noqa
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ async def create_connection(
391
391
exceptions = [exc for sub in exceptions for exc in sub ]
392
392
try :
393
393
if all_errors :
394
- raise ExceptionGroup ('create_connection failed' , exceptions )
394
+ raise ExceptionGroup ('create_connection failed' , exceptions ) # noqa: F821
395
395
if len (exceptions ) == 1 :
396
396
raise exceptions [0 ]
397
397
else :
You can’t perform that action at this time.
0 commit comments