Merge pull request #626 from L1ghtn1ng/uvloop-workaround-py3.9

temp fix for uvloop on py3.9
This commit is contained in:
J.Townsend 2020-12-15 22:35:06 +00:00 committed by GitHub
commit 71fe36ff23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -19,8 +19,10 @@
multiprocessing.freeze_support()
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
else:
if python_version()[0:3] < '3.9':
import uvloop
uvloop.install()
if "linux" in platform:
import aiomultiprocess
# As we are not using Windows we can change the spawn method to fork for greater performance

View file

@ -12,7 +12,7 @@
class Core:
@staticmethod
def version() -> str:
return '3.2.0'
return '3.2.1'
@staticmethod
def api_keys() -> dict: