shell_command: python 3.10 fix

Remove the deprecated "loop" parameter in asyncio.gather().

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan
2022-01-19 15:18:36 -05:00
parent 5f54a23f3e
commit 09689143b5

View File

@@ -121,7 +121,7 @@ class SCProcess(asyncio.subprocess.Process):
else:
stderr = self._noop() # type: ignore
stdin, stdout, stderr = await asyncio.tasks.gather(
stdin, stdout, stderr, loop=self._loop) # type: ignore
stdin, stdout, stderr)
await self.wait()
class ShellCommand: