Fixed parenthesised multi-with statement.

This syntax is not supported on Python < 3.9, and therefore it should be
broken down as a multi-line statement.
This commit is contained in:
Fabio Manganiello 2023-08-18 16:10:31 +02:00
parent ca95490412
commit d0c89f88a8
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -49,12 +49,9 @@ class ApplicationRunner:
self._print_version()
while True:
with (
CommandStream(parsed_args.ctrl_sock) as stream,
ApplicationProcess(
*args, pidfile=parsed_args.pidfile, timeout=self._default_timeout
) as self._proc,
):
with CommandStream(parsed_args.ctrl_sock) as stream, ApplicationProcess(
*args, pidfile=parsed_args.pidfile, timeout=self._default_timeout
) as self._proc:
try:
self._listen(stream)
except KeyboardInterrupt: