Merge pull request #138 from Philipp91/master

Fix SyntaxError in utils.py
This commit is contained in:
Creak 2022-01-09 09:23:32 -05:00 committed by GitHub
commit 3222cfe4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

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