Skip to content

Commit 8164649

Browse files
🩹 fix(bib.selection): Avoid asyncio deprecation warning.
1 parent 970a195 commit 8164649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.bin/bib.selection

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ async def display ( url , choice , back ) :
8080
def exit_program(button):
8181
raise urwid.ExitMainLoop()
8282

83-
async_loop = asyncio.get_event_loop()
83+
async_loop = asyncio.new_event_loop()
84+
asyncio.set_event_loop(async_loop)
8485
event_loop = urwid.AsyncioEventLoop(loop=async_loop)
8586

8687
main = urwid.Padding(menu('List of publications', choices), left=2, right=2)

0 commit comments

Comments
 (0)