summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 457fd078..013b4e7a 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -310,7 +310,7 @@ class UI(object):
"""
history = history or []
- fut = asyncio.Future()
+ fut = asyncio.get_event_loop().create_future()
oldroot = self.mainloop.widget
def select_or_cancel(text):
@@ -539,7 +539,7 @@ class UI(object):
assert cancel is None or cancel in choices.values()
assert msg_position in ['left', 'above']
- fut = asyncio.Future() # Create a returned future
+ fut = asyncio.get_event_loop().create_future() # Create a returned future
oldroot = self.mainloop.widget
def select_or_cancel(text):