Mercurial > libervia-backend
diff libervia/cli/cmd_pipe.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 47401850dec6 |
children |
line wrap: on
line diff
--- a/libervia/cli/cmd_pipe.py Tue Jun 18 12:06:45 2024 +0200 +++ b/libervia/cli/cmd_pipe.py Wed Jun 19 18:44:57 2024 +0200 @@ -40,12 +40,10 @@ super(PipeOut, self).__init__(host, "out", help=_("send a pipe a stream")) def add_parser_options(self): - self.parser.add_argument( - "jid", help=_("the destination jid") - ) + self.parser.add_argument("jid", help=_("the destination jid")) async def start(self): - """ Create named pipe, and send stdin to it """ + """Create named pipe, and send stdin to it""" try: port = await self.host.bridge.stream_out( await self.host.get_full_jid(self.args.jid), @@ -133,7 +131,8 @@ while True: try: server = await asyncio.start_server( - partial(handle_stream_in, host=self.host), host, port) + partial(handle_stream_in, host=self.host), host, port + ) except socket.error as e: if e.errno == errno.EADDRINUSE: port += 1