summaryrefslogtreecommitdiff
path: root/poezio/tabs/bookmarkstab.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2021-11-18 15:23:46 +0100
committermathieui <mathieui@mathieui.net>2021-12-11 19:16:33 +0100
commit79bbbdb3e633152cc95e77a550f2eb2cde4e6784 (patch)
tree090c32aa64837d48b5851fb56a84fa7ee76399c6 /poezio/tabs/bookmarkstab.py
parent2c59fa067af90bc116953f2ae162f5da4c1b6002 (diff)
downloadpoezio-79bbbdb3e633152cc95e77a550f2eb2cde4e6784.tar.gz
poezio-79bbbdb3e633152cc95e77a550f2eb2cde4e6784.tar.bz2
poezio-79bbbdb3e633152cc95e77a550f2eb2cde4e6784.tar.xz
poezio-79bbbdb3e633152cc95e77a550f2eb2cde4e6784.zip
Replace asyncio.ensure_future() with asyncio.create_task()
The latter function got introduced in Python 3.7, which is conveniently our MSPV, so let’s use that.
Diffstat (limited to 'poezio/tabs/bookmarkstab.py')
-rw-r--r--poezio/tabs/bookmarkstab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/tabs/bookmarkstab.py b/poezio/tabs/bookmarkstab.py
index 10c7c0ce..d21b5630 100644
--- a/poezio/tabs/bookmarkstab.py
+++ b/poezio/tabs/bookmarkstab.py
@@ -96,7 +96,7 @@ class BookmarksTab(Tab):
if bm in self.bookmarks:
self.bookmarks.remove(bm)
- asyncio.ensure_future(
+ asyncio.create_task(
self.save_routine()
)