Fix SyntaxError in utils.py
No idea if a lint error that 812ca1779f
tried to solve -- we'll see.
This commit is contained in:
parent
396260dae6
commit
9099ea0738
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue