File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
def run ():
9
9
try :
10
- loop = asyncio .get_event_loop ()
11
- loop .run_until_complete (main ())
10
+ if sys .version_info .minor >= 10 :
11
+ asyncio .run (main ())
12
+ else :
13
+ loop = asyncio .get_event_loop ()
14
+ loop .run_until_complete (main ())
12
15
except KeyboardInterrupt :
13
16
print ('Maigret is interrupted.' )
14
17
sys .exit (1 )
Original file line number Diff line number Diff line change @@ -719,8 +719,11 @@ async def main():
719
719
720
720
def run ():
721
721
try :
722
- loop = asyncio .get_event_loop ()
723
- loop .run_until_complete (main ())
722
+ if sys .version_info .minor >= 10 :
723
+ asyncio .run (main ())
724
+ else :
725
+ loop = asyncio .get_event_loop ()
726
+ loop .run_until_complete (main ())
724
727
except KeyboardInterrupt :
725
728
print ('Maigret is interrupted.' )
726
729
sys .exit (1 )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ lxml==4.9.0
16
16
MarkupSafe == 2.1.1
17
17
mock == 4.0.3
18
18
multidict == 6.0.2
19
- pycountry == 22.3.5
19
+ pycountry >= 22.3
20
20
PyPDF2 == 2.0.0
21
21
PySocks == 1.7.1
22
22
python-bidi == 0.4.2
You can’t perform that action at this time.
0 commit comments