From a4af9273eeec06cbf14e64300d505392f080b62c Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Wed, 8 Jan 2025 05:16:40 -0800 Subject: [PATCH] Fixed RUF055 (unnecessary-regular-expression): Plain string pattern passed to `re` function --- tools/readable_bash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/readable_bash.py b/tools/readable_bash.py index 3dd79c96..3ccf1a37 100644 --- a/tools/readable_bash.py +++ b/tools/readable_bash.py @@ -408,7 +408,7 @@ class BashScript(Grammar): string = re.sub(".* #NODOC\n", "", string) string = re.sub("\n\\s*if .*then.*|\n\\s*fi|\n\\s*else|\n\\s*elif .*", "", string) string = quasitokenize(string) - string = re.sub(r"hide_output ", "", string) + string = string.replace("hide_output ", "") parser = BashScript.parser() result = parser.parse_string(string)