From 00ad322c5868603d592ce89da4c8f62934ec784d Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 14:00:13 -0700 Subject: [PATCH] asyncio.wait takes an iterable, not args --- melamine/shred.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/melamine/shred.py b/melamine/shred.py index fd55310..34834d7 100644 --- a/melamine/shred.py +++ b/melamine/shred.py @@ -34,7 +34,7 @@ async def main(job: argparse.Namespace) -> bool: tasks.append(path.shred(hash=job.exhaustive, dryrun=job.dryrun)) elif isinstance(path, ShredDir): tasks.append(path.shred(hash=job.exhaustive, dryrun=job.dryrun)) - done, _ = await asyncio.wait(*tasks) + done, _ = await asyncio.wait(tasks) for task in done: e = task.exception() if e: @@ -68,7 +68,7 @@ async def main(job: argparse.Namespace) -> bool: tasks = [] async for item in mount_point.rglob("*"): tasks.append(check_inode_and_unlink(item)) - done, _ = await asyncio.wait(*tasks) + done, _ = await asyncio.wait(tasks) for task in done: e = task.exception() if e: