From 9099ea0738b08e1eb08ffdaa77751b8c5fbbbceb Mon Sep 17 00:00:00 2001 From: Philipp Keck Date: Tue, 4 Jan 2022 22:11:10 +0100 Subject: [PATCH] Fix SyntaxError in utils.py No idea if a lint error that 812ca1779f9537153d57fd89a08c6957361d93ac tried to solve -- we'll see. --- src/diffuse/utils.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/diffuse/utils.py b/src/diffuse/utils.py index 77ba3c3..b42f2e4 100644 --- a/src/diffuse/utils.py +++ b/src/diffuse/utils.py @@ -182,14 +182,13 @@ def popenRead(dn, cmd, prefs, bash_pref, success_results=None): info = None if _use_flatpak(): cmd = ['flatpak-spawn', '--host'] + cmd - with (subprocess.Popen( - cmd, - stdin=subprocess.PIPE, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - cwd=dn, - startupinfo=info) as proc - ): + with subprocess.Popen( + cmd, + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + cwd=dn, + startupinfo=info) as proc: proc.stdin.close() proc.stderr.close() fd = proc.stdout