From 705f8db526ace58fec9bfd9f025765d9bc4860a3 Mon Sep 17 00:00:00 2001 From: Josselin Date: Thu, 17 Dec 2020 16:03:29 +0100 Subject: [PATCH] Minor --- slither/core/slither_core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slither/core/slither_core.py b/slither/core/slither_core.py index c1cc70d74..2226b9879 100644 --- a/slither/core/slither_core.py +++ b/slither/core/slither_core.py @@ -306,10 +306,11 @@ class SlitherCore(Context): # pylint: disable=too-many-instance-attributes,too- ignore_line_text = self.crytic_compile.get_code_from_line(file, ignore_line_index) if ignore_line_text: match = re.findall( - b"^\s*//\s*slither-disable-next-line\s*([a-zA-Z0-9_,-]*)", ignore_line_text + r"^\s*//\s*slither-disable-next-line\s*([a-zA-Z0-9_,-]*)", + ignore_line_text.decode("utf8"), ) if match: - ignored = match[0].decode("utf8").split(",") + ignored = match[0].split(",") if ignored and ("all" in ignored or any(r["check"] == c for c in ignored)): return True