From d0c89f88a8d6f980f1a711a4915db8a87f7c56b1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 18 Aug 2023 16:10:31 +0200 Subject: [PATCH] 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. --- platypush/runner/_runner.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/platypush/runner/_runner.py b/platypush/runner/_runner.py index ac713c9d25..ce2a443abf 100644 --- a/platypush/runner/_runner.py +++ b/platypush/runner/_runner.py @@ -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: