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 untrusted user: blacklight
GPG key ID: D90FBA7F76362774

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: