mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-01-23 12:37:05 +00:00
Fixed RUF055 (unnecessary-regular-expression): Plain string pattern passed to re
function
This commit is contained in:
parent
d7d91eeb79
commit
a4af9273ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user