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
1 changed files with 1 additions and 1 deletions

View File

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