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:
parent
ca95490412
commit
d0c89f88a8
1 changed files with 3 additions and 6 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue