mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Revert "Don't change the default asyncio loop policy"
This reverts commit cf76f70a7d
.
This commit is contained in:
parent
0807410583
commit
2d0c2e0f8a
1 changed files with 4 additions and 0 deletions
|
@ -2,12 +2,16 @@
|
|||
Salt package
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import importlib
|
||||
import locale
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
if sys.platform.startswith("win"):
|
||||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
||||
|
||||
if sys.version_info < (3,): # pragma: no cover
|
||||
sys.stderr.write(
|
||||
"\n\nAfter the Sodium release, 3001, Salt no longer supports Python 2. Exiting.\n\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue