Skip to content

Commit 597a0c6

Browse files
committed
SyntaxError: f-string expression part cannot include a backslash
1 parent 9e4e567 commit 597a0c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

djlsp/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ class DummyForLoop:
142142
# django uses abc.0 for list index lookup, replace those with abc[0]
143143
script_lines.append(re.sub(r"\.(\d+)", r"[\1]", code))
144144

145-
logger.debug(f"===\n{'\n'.join(script_lines)}\n===")
145+
logger.debug(
146+
"\n".join(["=== Jedi script ===", *script_lines, "=== End script ==="])
147+
)
146148

147149
return jedi.Script(code="\n".join(script_lines), project=self.jedi_project)
148150

0 commit comments

Comments
 (0)