From 801c4f81583cf482a0ffe0e9c88c882d4bfd03f6 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 25 Nov 2025 12:52:39 +0100 Subject: [PATCH] webconfig.py: simplify "functions" output parsing This outputs one-item-per-line if stdout is a terminal. --- share/tools/web_config/webconfig.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 1490e4df1..fbab7f9d9 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -815,12 +815,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_get_functions(self): out, err = run_fish_cmd("functions") out = out.strip() - - # Not sure why fish sometimes returns this with newlines - if "\n" in out: - return out.split("\n") - else: - return out.strip().split(", ") + return out.split("\n") def do_get_variable_names(self, cmd): "Given a command like 'set -U' return all the variable names"