Revert "Don't change the default asyncio loop policy"

This reverts commit cf76f70a7d.
This commit is contained in:
Pedro Algarvio 2023-12-07 17:05:37 +00:00
parent 0807410583
commit 2d0c2e0f8a
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -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"