From 86e777eaad29380a0175ee88d2e9c0b0df0eceac Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:09:10 +0100 Subject: [PATCH] Fix python coc warning (#19895) --- lib/libesp32/berry/tools/coc/coc_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libesp32/berry/tools/coc/coc_parser.py b/lib/libesp32/berry/tools/coc/coc_parser.py index 28bdfcdd7..c5603ebb7 100644 --- a/lib/libesp32/berry/tools/coc/coc_parser.py +++ b/lib/libesp32/berry/tools/coc/coc_parser.py @@ -104,7 +104,7 @@ class coc_parser: return r[0] def parse_object(self): - self.text = re.sub("\s+//.*?$", "", self.text, flags=re.MULTILINE) # remove trailing comments + self.text = re.sub(r"\s+//.*?$", "", self.text, flags=re.MULTILINE) # remove trailing comments while True: obj = self.parse_block() self.objects.append(obj)