Skip to content

Commit 41a7479

Browse files
committed
more Python<3.9 compat
1 parent 039e9b1 commit 41a7479

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/idom/server/fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async def _activate_dispatcher(self) -> None:
201201

202202
async def _deactivate_dispatcher(self) -> None: # pragma: no cover
203203
# for some reason this isn't getting run during testing
204-
self._dispatch_daemon_future.cancel(f"{self} is shutting down")
204+
self._dispatch_daemon_future.cancel()
205205
await asyncio.wait([self._dispatch_daemon_future])
206206

207207
async def _run_dispatcher(

src/idom/server/sanic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ async def _activate_dispatcher(
205205
async def _deactivate_dispatcher(
206206
self, app: Sanic, loop: asyncio.AbstractEventLoop
207207
) -> None:
208-
self._dispatch_daemon_future.cancel(f"{self} is shutting down")
208+
self._dispatch_daemon_future.cancel()
209209
await asyncio.wait([self._dispatch_daemon_future])
210210

211211
async def _run_dispatcher(

0 commit comments

Comments
 (0)