File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ def wrapper(*args, **kwargs):
814814
815815@contextlib .contextmanager
816816def _use_qeventloop ():
817- app = QApplication .instance () or QApplication ([])
817+ app = QApplication .instance () or QApplication ([sys . argv ])
818818 loop = QEventLoop (app )
819819 old_loop = asyncio .get_event_loop ()
820820 asyncio .set_event_loop (loop )
@@ -825,10 +825,10 @@ def _use_qeventloop():
825825 asyncio .set_event_loop (old_loop )
826826
827827
828- def run (main , * args , ** kwargs ):
828+ def run (future ):
829829 """
830- Run the given coroutine using a QEventLoop without setting a global policy .
830+ Run the given coroutine using a QEventLoop.
831831 """
832832 with _use_qeventloop () as loop :
833- return loop .run_until_complete (main ( * args , ** kwargs ) )
833+ return loop .run_until_complete (future )
834834
You can’t perform that action at this time.
0 commit comments