Files
app-store-optimization/skills/loki-mode/benchmarks/results/2026-01-05-10-37-54/swebench-loki-patches/pylint-dev__pylint-5859.patch

15 lines
459 B
Diff

# pylint-dev__pylint-5859
# Loki Mode Multi-Agent Patch
# Attempts: 1
--- a/pylint/checkers/misc.py
+++ b/pylint/checkers/misc.py
@@ -94,7 +94,7 @@ class EncodingChecker(BaseChecker):
def open(self):
super().open()
- notes = "|".join(self.config.notes)
+ notes = "|".join(map(re.escape, self.config.notes))
if self.config.notes_rgx:
regex_string = rf"#\s*({notes}|{self.config.notes_rgx})\b"
else: