forked from platypush/platypush
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()
|
||||
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue