Fix SyntaxError in utils.py

No idea if a lint error that 812ca1779f tried to solve -- we'll see.
This commit is contained in:
Philipp Keck 2022-01-04 22:11:10 +01:00
parent 396260dae6
commit 9099ea0738
1 changed files with 7 additions and 8 deletions

View File

@ -182,14 +182,13 @@ def popenRead(dn, cmd, prefs, bash_pref, success_results=None):
info = None info = None
if _use_flatpak(): if _use_flatpak():
cmd = ['flatpak-spawn', '--host'] + cmd cmd = ['flatpak-spawn', '--host'] + cmd
with (subprocess.Popen( with subprocess.Popen(
cmd, cmd,
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
cwd=dn, cwd=dn,
startupinfo=info) as proc startupinfo=info) as proc:
):
proc.stdin.close() proc.stdin.close()
proc.stderr.close() proc.stderr.close()
fd = proc.stdout fd = proc.stdout