delete WindowsSelectorEventLoopPolicy

This commit is contained in:
HibiKier
2022-05-22 19:03:22 +08:00
parent d2fe95cc05
commit 35c9585b22
6 changed files with 353 additions and 353 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ try:
except ModuleNotFoundError:
import json
if str(platform.system()).lower() == "windows":
policy = asyncio.WindowsSelectorEventLoopPolicy()
asyncio.set_event_loop_policy(policy)
# if str(platform.system()).lower() == "windows":
# policy = asyncio.WindowsSelectorEventLoopPolicy()
# asyncio.set_event_loop_policy(policy)
headers = {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;"