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

View File

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