From 8d5af2f3406961e900f8b941b04cbc9265d517ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 28 Sep 2021 19:32:19 +0200 Subject: [PATCH] reformat file --- scripts/rofi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rofi.py b/scripts/rofi.py index 101c1c6..87c3a4b 100644 --- a/scripts/rofi.py +++ b/scripts/rofi.py @@ -1,5 +1,6 @@ import subprocess + def rofi(prompt, options, rofi_args=[], fuzzy=True): optionstr = '\n'.join(option.replace('\n', ' ') for option in options) args = ['rofi', '-sort', '-no-levenshtein-sort'] @@ -9,7 +10,6 @@ def rofi(prompt, options, rofi_args=[], fuzzy=True): args += rofi_args args = [str(arg) for arg in args] - result = subprocess.run(args, input=optionstr, stdout=subprocess.PIPE, universal_newlines=True) returncode = result.returncode stdout = result.stdout.strip()