Compatibility with Python 10 (#509)

This commit is contained in:
Soxoj
2022-06-04 18:12:54 -04:00
committed by GitHub
parent 814544e1a0
commit 7ba8af0247
3 changed files with 11 additions and 5 deletions
+3
View File
@@ -7,6 +7,9 @@ from maigret.maigret import main
def run():
try:
if sys.version_info.minor >= 10:
asyncio.run(main())
else:
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
except KeyboardInterrupt:
+3
View File
@@ -719,6 +719,9 @@ async def main():
def run():
try:
if sys.version_info.minor >= 10:
asyncio.run(main())
else:
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
except KeyboardInterrupt:
+1 -1
View File
@@ -16,7 +16,7 @@ lxml==4.9.0
MarkupSafe==2.1.1
mock==4.0.3
multidict==6.0.2
pycountry==22.3.5
pycountry>=22.3
PyPDF2==2.0.0
PySocks==1.7.1
python-bidi==0.4.2