Skip to content

Commit bd06c97

Browse files
martinRenoudavidbrochart
authored andcommitted
Update lib/matplotlib/backends/backend_webagg_core.py
Co-authored-by: David Brochart <[email protected]>
1 parent 599708a commit bd06c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def _timer_task(self, interval):
9797
def _timer_start(self):
9898
self._timer_stop()
9999

100-
self._task = asyncio.ensure_future(
100+
self._task = asyncio.create_task(
101101
self._timer_task(max(self.interval / 1_000., 1e-6))
102102
)
103103

0 commit comments

Comments
 (0)