1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-03 04:07:05 +00:00

Fixed ISC003 (explicit-string-concatenation): Explicitly concatenated string should be implicitly concatenated

This commit is contained in:
Teal Dulcet 2023-12-23 06:00:04 -08:00 committed by Joshua Tauberer
parent 775a4223de
commit dbc2b5eee0

View File

@ -94,7 +94,7 @@ while len(input_lines) > 0:
name, val = settings[i].split("=", 1)
m = re.match(
r"(\s*)"
+ "(" + re.escape(comment_char) + r"\s*)?"
"(" + re.escape(comment_char) + r"\s*)?"
+ re.escape(name) + delimiter_re + r"(.*?)\s*$",
line, re.S)
if not m: continue